summaryrefslogtreecommitdiffstats
path: root/scripts/oe-git-proxy
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2019-01-29 16:48:35 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-31 23:23:26 (GMT)
commitcbc148d5d93d5f3531434fee7b234a16196b3088 (patch)
tree7805be264df1c06f7df6c4784f9bbca4ab753647 /scripts/oe-git-proxy
parentb68a42596d69b0fee1ef6f7181a823718b014094 (diff)
downloadpoky-cbc148d5d93d5f3531434fee7b234a16196b3088.tar.gz
oe-git-proxy: Avoid resolving NO_PROXY against local files
NO_PROXY may contain * elements, and if we are unlucky (or want to match all hosts with *), we will pick up local files rather than doing the match in match_host. Quoting helps here. (From OE-Core rev: 7e216e806ca765152fd874e24785f783a3201284) Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-git-proxy')
-rwxr-xr-xscripts/oe-git-proxy4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/oe-git-proxy b/scripts/oe-git-proxy
index 7a43fe6..1800942 100755
--- a/scripts/oe-git-proxy
+++ b/scripts/oe-git-proxy
@@ -131,8 +131,8 @@ if [ -z "$ALL_PROXY" ]; then
131fi 131fi
132 132
133# Connect directly to hosts in NO_PROXY 133# Connect directly to hosts in NO_PROXY
134for H in ${NO_PROXY//,/ }; do 134for H in "${NO_PROXY//,/ }"; do
135 if match_host $1 $H; then 135 if match_host $1 "$H"; then
136 exec $SOCAT STDIO $METHOD 136 exec $SOCAT STDIO $METHOD
137 fi 137 fi
138done 138done