mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-04 20:54:45 +02:00
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>
This commit is contained in:
parent
7ffd9ee9c3
commit
4b0bf01c14
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user