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
This commit is contained in:
parent
d74f2102a0
commit
666dc9f6f2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue