mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
oe-git-proxy: allow setting SOCAT from outside
This allows to write selftests where we can mock the real socat. (From OE-Core rev: ea2690e867ff11250d3dd143184432dd03909910) Signed-off-by: Henning Schild <henning.schild@siemens.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
b598c08489
commit
49bb6cefb5
|
@ -41,10 +41,12 @@ if [ $# -lt 2 -o "$1" = '--help' -o "$1" = '-h' ] ; then
|
|||
fi
|
||||
|
||||
# Locate the netcat binary
|
||||
SOCAT=$(which socat 2>/dev/null)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR: socat binary not in PATH" 1>&2
|
||||
exit 1
|
||||
if [ -z "$SOCAT" ]; then
|
||||
SOCAT=$(which socat 2>/dev/null)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR: socat binary not in PATH" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
METHOD=""
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user