From d74f2102a0849838eb4e15950b01d49f9f79392f Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Sat, 22 Feb 2020 01:06:40 +0000 Subject: [PATCH] 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 --- scripts/build/bootstrap_archives | 4 ++++ scripts/build/chroot_archives | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/scripts/build/bootstrap_archives b/scripts/build/bootstrap_archives index 2a33d67c4..e0dd1fdfc 100755 --- a/scripts/build/bootstrap_archives +++ b/scripts/build/bootstrap_archives @@ -24,6 +24,10 @@ then shift fi +if [ "${_PASS}" != "binary" ] && [ "${_PASS}" != "source" ]; then + Usage +fi + Arguments "${@}" # Reading configuration files diff --git a/scripts/build/chroot_archives b/scripts/build/chroot_archives index 9a83d80a2..08d5e3202 100755 --- a/scripts/build/chroot_archives +++ b/scripts/build/chroot_archives @@ -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