diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-04-01 09:29:52 +0100 |
---|---|---|
committer | Raphaƫl Hertzog <hertzog@debian.org> | 2020-04-23 09:38:01 +0000 |
commit | 11836c0c18b07f4bd1ea22a2163875975f3e6816 (patch) | |
tree | a3534b7d09a538fecec2379fdba0a7c6a12247a2 /functions/stagefile.sh | |
parent | f6a50b6db204fa1a6d0ae8b371c4108911aed0eb (diff) | |
download | vyos-live-build-11836c0c18b07f4bd1ea22a2163875975f3e6816.tar.gz vyos-live-build-11836c0c18b07f4bd1ea22a2163875975f3e6816.zip |
fix $@ parameter expansion issues
$@ when unquoted is subject to further word splitting. this fixes a bunch
of instances where it was incorrectly being used unquoted.
Gbp-Dch: Short
Diffstat (limited to 'functions/stagefile.sh')
-rwxr-xr-x | functions/stagefile.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/stagefile.sh b/functions/stagefile.sh index 40a1e2518..3c3468851 100755 --- a/functions/stagefile.sh +++ b/functions/stagefile.sh @@ -74,7 +74,7 @@ Require_stagefiles () local FILE local MISSING="" local MISSING_COUNT=0 - for FILE in ${@}; do + for FILE in "${@}"; do if [ ! -f ".build/${FILE}" ]; then MISSING_COUNT=$(( $MISSING_COUNT + 1 )) MISSING="${MISSING:+$MISSING }${FILE}" |