From 666dc9f6f2e53a75025ee95eef8f23f00b6c7c8c Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Sun, 1 Mar 2020 07:22:22 +0000 Subject: 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 --- scripts/build/bootstrap_archives | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'scripts/build/bootstrap_archives') 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 -- cgit v1.2.3