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:
parent
ae2012953b
commit
d74f2102a0
|
@ -24,6 +24,10 @@ then
|
|||
shift
|
||||
fi
|
||||
|
||||
if [ "${_PASS}" != "binary" ] && [ "${_PASS}" != "source" ]; then
|
||||
Usage
|
||||
fi
|
||||
|
||||
Arguments "${@}"
|
||||
|
||||
# Reading configuration files
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue