From c9a09a282c0b17ac2a922adc920369844fa9adeb Mon Sep 17 00:00:00 2001 From: Kiel Christofferson Date: Mon, 1 Jul 2013 18:47:49 -0400 Subject: 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. --- scripts/build/bootstrap_archives | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 "${@}" -- cgit v1.2.3