diff options
author | Henning Schild <henning.schild@siemens.com> | 2019-09-03 15:43:50 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-16 23:02:44 +0100 |
commit | 4b0bf01c14a90313ab294ead2ca1e5536bafd632 (patch) | |
tree | 07475b48f31148a8982735cf5f770632fe1ad929 /scripts | |
parent | 7ffd9ee9c32452c72293e70bd2ec3ae36312dcf1 (diff) | |
download | poky-4b0bf01c14a90313ab294ead2ca1e5536bafd632.tar.gz |
oe-git-proxy: fix dash "Bad substitution"
The script claims it works with dash, make sure that is actually the
case.
(From OE-Core rev: cb373201464f4a0a90482f62a24a4043abe73fd6)
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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/oe-git-proxy | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/oe-git-proxy b/scripts/oe-git-proxy index 2cb995f43c..aa9b9dc9a9 100755 --- a/scripts/oe-git-proxy +++ b/scripts/oe-git-proxy | |||
@@ -64,7 +64,7 @@ ipv4_val() { | |||
64 | IP="$1" | 64 | IP="$1" |
65 | SHIFT=24 | 65 | SHIFT=24 |
66 | VAL=0 | 66 | VAL=0 |
67 | for B in ${IP//./ }; do | 67 | for B in $( echo "$IP" | tr '.' ' ' ); do |
68 | VAL=$(($VAL+$(($B<<$SHIFT)))) | 68 | VAL=$(($VAL+$(($B<<$SHIFT)))) |
69 | SHIFT=$(($SHIFT-8)) | 69 | SHIFT=$(($SHIFT-8)) |
70 | done | 70 | done |
@@ -137,7 +137,7 @@ if [ -z "$ALL_PROXY" ]; then | |||
137 | fi | 137 | fi |
138 | 138 | ||
139 | # Connect directly to hosts in NO_PROXY | 139 | # Connect directly to hosts in NO_PROXY |
140 | for H in ${NO_PROXY//,/ }; do | 140 | for H in $( echo "$NO_PROXY" | tr ',' ' ' ); do |
141 | if match_host $1 $H; then | 141 | if match_host $1 $H; then |
142 | exec $SOCAT STDIO $METHOD | 142 | exec $SOCAT STDIO $METHOD |
143 | fi | 143 | fi |