summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2015-03-27 10:17:35 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-31 22:23:15 +0100
commit88340ad5225044069cbbc1c8bb4ad27b580f7f33 (patch)
tree1d021ae5b19be9b7f1942d0bbd93e13ea872da4b
parentaa1438b56f30515f9c31b306decef7f562dda81f (diff)
downloadpoky-88340ad5225044069cbbc1c8bb4ad27b580f7f33.tar.gz
oe-git-proxy: Redirect error messages to STDERR
oe-git-proxy script needs socat. If socat is not found, an error message is issued on STDOUT. This leads to a misleading git message: fatal: protocol error: bad line length character: ERRO instead of the intended message: ERROR: socat binary not in PATH Redirecting the error message to STDERR fixes this issue. (From OE-Core rev: 960a7f7ae24e72efc165a431f8b91b3f3b176916) Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/oe-git-proxy2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/oe-git-proxy b/scripts/oe-git-proxy
index 0ce7ed090e..48734556a1 100755
--- a/scripts/oe-git-proxy
+++ b/scripts/oe-git-proxy
@@ -19,7 +19,7 @@
19# Locate the netcat binary 19# Locate the netcat binary
20SOCAT=$(which socat 2>/dev/null) 20SOCAT=$(which socat 2>/dev/null)
21if [ $? -ne 0 ]; then 21if [ $? -ne 0 ]; then
22 echo "ERROR: socat binary not in PATH" 22 echo "ERROR: socat binary not in PATH" 1>&2
23 exit 1 23 exit 1
24fi 24fi
25METHOD="" 25METHOD=""