From: Henning Schild <[email protected]>

The script claims it works with dash, make sure that is actually the
case.

Signed-off-by: Henning Schild <[email protected]>
---
 scripts/oe-git-proxy | 4 ++--
 1 file 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() {
        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
-- 
2.21.0

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to