summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/oe-git-proxy10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/oe-git-proxy b/scripts/oe-git-proxy
index bb2ed2a46e..8499a99a71 100755
--- a/scripts/oe-git-proxy
+++ b/scripts/oe-git-proxy
@@ -41,10 +41,12 @@ if [ $# -lt 2 -o "$1" = '--help' -o "$1" = '-h' ] ; then
41fi 41fi
42 42
43# Locate the netcat binary 43# Locate the netcat binary
44SOCAT=$(which socat 2>/dev/null) 44if [ -z "$SOCAT" ]; then
45if [ $? -ne 0 ]; then 45 SOCAT=$(which socat 2>/dev/null)
46 echo "ERROR: socat binary not in PATH" 1>&2 46 if [ $? -ne 0 ]; then
47 exit 1 47 echo "ERROR: socat binary not in PATH" 1>&2
48 exit 1
49 fi
48fi 50fi
49METHOD="" 51METHOD=""
50 52