summaryrefslogtreecommitdiff
path: root/scripts/build/bootstrap_archives
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-03-01 07:22:22 +0000
committerLyndon Brown <jnqnfe@gmail.com>2020-03-05 02:41:48 +0000
commit666dc9f6f2e53a75025ee95eef8f23f00b6c7c8c (patch)
treef32f2e699fdf30ca1d3ec7507e2b879a8f8b65e8 /scripts/build/bootstrap_archives
parentd74f2102a0849838eb4e15950b01d49f9f79392f (diff)
downloadvyos-live-build-666dc9f6f2e53a75025ee95eef8f23f00b6c7c8c.tar.gz
vyos-live-build-666dc9f6f2e53a75025ee95eef8f23f00b6c7c8c.zip
bootstrap_archives: remove unnecessary param default
all uses of this script pass in a suitable 'pass' param, and a previous commit added a validation check. Having a fallback to 'binary' should a param not be supplied is completely unnecessary. fyi, this script is only ever called from the bootstrap stage and with 'binary' as the param, thus supporting being called with 'source' and indeed having a 'pass' param at all is surely utterly pointless in itself. Gbp-Dch: Ignore
Diffstat (limited to 'scripts/build/bootstrap_archives')
-rwxr-xr-xscripts/build/bootstrap_archives7
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/build/bootstrap_archives b/scripts/build/bootstrap_archives
index e0dd1fdfc..6f878b97d 100755
--- a/scripts/build/bootstrap_archives
+++ b/scripts/build/bootstrap_archives
@@ -18,11 +18,8 @@ DESCRIPTION="$(Echo 'manage /etc/apt/sources.list')"
HELP=""
USAGE="${PROGRAM} [source|binary] [--force]"
-_PASS="${1:-binary}"
-if [ -n "${1}" ]
-then
- shift
-fi
+_PASS="${1}"
+shift
if [ "${_PASS}" != "binary" ] && [ "${_PASS}" != "source" ]; then
Usage