summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorHenning Schild <henning.schild@siemens.com>2019-09-03 15:43:50 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-15 17:49:48 +0100
commitcb373201464f4a0a90482f62a24a4043abe73fd6 (patch)
tree61bb9c5fcb821f07a979a6135c0cb97a5ef6272b /scripts
parent12f0cc209aaba48f846c62663e0b9e5efd253d71 (diff)
downloadopenembedded-core-contrib-cb373201464f4a0a90482f62a24a4043abe73fd6.tar.gz
oe-git-proxy: fix dash "Bad substitution"
The script claims it works with dash, make sure that is actually the case. Signed-off-by: Henning Schild <henning.schild@siemens.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-git-proxy4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/oe-git-proxy b/scripts/oe-git-proxy
index 2cb995f43cf..aa9b9dc9a94 100755
--- a/scripts/oe-git-proxy
+++ b/scripts/oe-git-proxy
@@ -64,7 +64,7 @@ ipv4_val() {
IP="$1"
SHIFT=24
VAL=0
- for B in ${IP//./ }; do
+ for B in $( echo "$IP" | tr '.' ' ' ); do
VAL=$(($VAL+$(($B<<$SHIFT))))
SHIFT=$(($SHIFT-8))
done
@@ -137,7 +137,7 @@ if [ -z "$ALL_PROXY" ]; then
fi
# Connect directly to hosts in NO_PROXY
-for H in ${NO_PROXY//,/ }; do
+for H in $( echo "$NO_PROXY" | tr ',' ' ' ); do
if match_host $1 $H; then
exec $SOCAT STDIO $METHOD
fi