]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-git-proxy: disable shell pathname expansion for the whole script
authorHenning Schild <henning.schild@siemens.com>
Tue, 3 Sep 2019 13:43:48 +0000 (15:43 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 15 Sep 2019 16:49:47 +0000 (17:49 +0100)
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>
scripts/oe-git-proxy

index 10e6560da41c3a2afe16376368a99ed8b5598b88..9eeef45dcf5146a418ed7545024f23a315296254 100755 (executable)
@@ -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'