summaryrefslogtreecommitdiff
path: root/scripts/build/chroot_cache
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-05-02 13:43:22 +0100
committerLyndon Brown <jnqnfe@gmail.com>2020-05-02 14:04:12 +0100
commitb20979334cc28c345b2b72da30c3591fb5c85882 (patch)
treee9f9ecbbae747624773cf878d9245becf51732d5 /scripts/build/chroot_cache
parentda1fab116139150db562eb2c104dea55b7535a33 (diff)
downloadvyos-live-build-b20979334cc28c345b2b72da30c3591fb5c85882.tar.gz
vyos-live-build-b20979334cc28c345b2b72da30c3591fb5c85882.zip
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
Diffstat (limited to 'scripts/build/chroot_cache')
-rwxr-xr-xscripts/build/chroot_cache5
1 files changed, 5 insertions, 0 deletions
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