diff options
author | Juro Bystricky <juro.bystricky@intel.com> | 2015-03-27 10:17:35 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-31 22:24:33 +0100 |
commit | a7e20761bd61bcfc5a49f21fa02f5f2117782594 (patch) | |
tree | 71ea8c2a45ce7617860df754742e7563e1e684c1 /scripts | |
parent | bc090aa673356d3d2e72aa4753c3eccd4d0f9b35 (diff) | |
download | poky-a7e20761bd61bcfc5a49f21fa02f5f2117782594.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: d611d7009631aa8a372f248995b52938163966c6)
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/oe-git-proxy | 2 |
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 |
20 | SOCAT=$(which socat 2>/dev/null) | 20 | SOCAT=$(which socat 2>/dev/null) |
21 | if [ $? -ne 0 ]; then | 21 | if [ $? -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 |
24 | fi | 24 | fi |
25 | METHOD="" | 25 | METHOD="" |