diff options
author | Kiel Christofferson <kiel@endpoint.com> | 2013-07-01 18:47:49 -0400 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2014-03-02 06:22:19 +0100 |
commit | c9a09a282c0b17ac2a922adc920369844fa9adeb (patch) | |
tree | b7edd986f1fb30d0593178eda6f8ccd9bff78a53 | |
parent | 3c69e6b56c381f62790b449d5d7661e712eb920c (diff) | |
download | vyos-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.
-rwxr-xr-x | scripts/build/bootstrap_archives | 5 |
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 "${@}" |