aboutsummaryrefslogtreecommitdiff
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-29 23:07:17 +0100
commit960a7f7ae24e72efc165a431f8b91b3f3b176916 (patch)
tree4ff8c9dfe4c516643aa7671b1628463adf16b2bd
parentdd8099ca3092fbd5c685e5ef1b1c5a8185a6893d (diff)
downloadopenembedded-core-960a7f7ae24e72efc165a431f8b91b3f3b176916.zip
openembedded-core-960a7f7ae24e72efc165a431f8b91b3f3b176916.tar.gz
openembedded-core-960a7f7ae24e72efc165a431f8b91b3f3b176916.tar.bz2
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. 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 0ce7ed0..4873455 100755
--- a/scripts/oe-git-proxy
+++ b/scripts/oe-git-proxy
@@ -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=""