archives: add 'pass' param validation check

if this had already been in place then it would have caught
bug #952837.

Gbp-Dch: Short
Closes: #952841
This commit is contained in:
Lyndon Brown 2020-02-22 01:06:40 +00:00
parent ae2012953b
commit d74f2102a0
2 changed files with 8 additions and 0 deletions

View File

@ -24,6 +24,10 @@ then
shift
fi
if [ "${_PASS}" != "binary" ] && [ "${_PASS}" != "source" ]; then
Usage
fi
Arguments "${@}"
# Reading configuration files

View File

@ -21,6 +21,10 @@ USAGE="${PROGRAM} {source|binary} {install|remove} [--force]"
_PASS="${1}"
shift
if [ "${_PASS}" != "binary" ] && [ "${_PASS}" != "source" ]; then
Usage
fi
Arguments "${@}"
# Reading configuration files