summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorHenning Schild <henning.schild@siemens.com>2019-09-03 15:43:48 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-15 17:49:47 +0100
commit477ee7e673684db988c66a75b6400e33509730b4 (patch)
tree8491f57edbe586750bcedff226841ff4b941f400 /scripts
parent0fdc12dac6244be135ea519fe9c39109e7cfc6d6 (diff)
downloadopenembedded-core-contrib-477ee7e673684db988c66a75b6400e33509730b4.tar.gz
oe-git-proxy: disable shell pathname expansion for the whole script
This truly fixes the issue that cbc148d5d93d5f3531434fee7b234a16196b3088 wanted to solve, without breaking the iteration over multiple entries. Signed-off-by: Henning Schild <henning.schild@siemens.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-git-proxy3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/oe-git-proxy b/scripts/oe-git-proxy
index 10e6560da4..9eeef45dcf 100755
--- a/scripts/oe-git-proxy
+++ b/scripts/oe-git-proxy
@@ -19,6 +19,9 @@
# AUTHORS
# Darren Hart <dvhart@linux.intel.com>
+# disable pathname expansion, NO_PROXY fields could start with "*" or be it
+set -f
+
if [ $# -lt 2 -o "$1" = '--help' -o "$1" = '-h' ] ; then
echo 'oe-git-proxy: error: the following arguments are required: host port'
echo 'Usage: oe-git-proxy host port'