diff options
Diffstat (limited to 'scripts/oe-git-proxy')
-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 |