From b20979334cc28c345b2b72da30c3591fb5c85882 Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Sat, 2 May 2020 13:43:22 +0100 Subject: caching: output error on invalid action param for bootstrap, the check is moved to the case statement for greater robustness, and for consistency with other scripts. Gbp-Dch: Ignore --- scripts/build/chroot_cache | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/build/chroot_cache') diff --git a/scripts/build/chroot_cache b/scripts/build/chroot_cache index 73a9f62d2..451cda1e0 100755 --- a/scripts/build/chroot_cache +++ b/scripts/build/chroot_cache @@ -76,4 +76,9 @@ case "${_ACTION}" in # Creating stage file Create_stagefile "${STAGE_FILE}" ;; + + *) + Echo_error "Invalid action parameter: '${_ACTION}'" + Usage --fail + ;; esac -- cgit v1.2.3