summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKiel Christofferson <kiel@endpoint.com>2013-07-01 18:47:49 -0400
committerDaniel Baumann <mail@daniel-baumann.ch>2014-03-02 06:22:19 +0100
commitc9a09a282c0b17ac2a922adc920369844fa9adeb (patch)
treeb7edd986f1fb30d0593178eda6f8ccd9bff78a53 /scripts
parent3c69e6b56c381f62790b449d5d7661e712eb920c (diff)
downloadvyos-live-build-c9a09a282c0b17ac2a922adc920369844fa9adeb.tar.gz
vyos-live-build-c9a09a282c0b17ac2a922adc920369844fa9adeb.zip
Only call shift if args are not empty.
Some shells (like dash) will exit fatally when the shift builtin is called beyond the last option.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/bootstrap_archives5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/build/bootstrap_archives b/scripts/build/bootstrap_archives
index 365bb2784..f5816e2cb 100755
--- a/scripts/build/bootstrap_archives
+++ b/scripts/build/bootstrap_archives
@@ -19,7 +19,10 @@ HELP=""
USAGE="${PROGRAM} [--force]"
_PASS="${1:-binary}"
-shift
+if [ -n "${1}" ]
+then
+ shift
+fi
Arguments "${@}"