]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-git-proxy: Redirect error messages to STDERR
authorJuro Bystricky <juro.bystricky@intel.com>
Fri, 27 Mar 2015 17:17:35 +0000 (10:17 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 29 Mar 2015 22:07:17 +0000 (23:07 +0100)
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.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-git-proxy

index 0ce7ed090e483e60e325b3ca1e41e327ae90aaa0..48734556a148188094acf139d3f51167e6e4eeba 100755 (executable)
@@ -19,7 +19,7 @@
 # Locate the netcat binary
 SOCAT=$(which socat 2>/dev/null)
 if [ $? -ne 0 ]; then
-       echo "ERROR: socat binary not in PATH"
+       echo "ERROR: socat binary not in PATH" 1>&2
        exit 1
 fi
 METHOD=""