[oe-commits] [openembedded-core] 13/58: oe-git-proxy: fix dash "Bad substitution"

git at git.openembedded.org git at git.openembedded.org
Sun Sep 15 16:59:07 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit cb373201464f4a0a90482f62a24a4043abe73fd6
Author: Henning Schild <henning.schild at siemens.com>
AuthorDate: Tue Sep 3 15:43:50 2019 +0200

    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 at siemens.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 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 2cb995f..aa9b9dc 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list