From 375693311bd72596b812c2147e597d58d5e94685 Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 11 May 2021 15:59:51 +0100 Subject: [PATCH] Add error check for IMAGE_TYPE --- build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.sh b/build.sh index 5623742..d34ced9 100755 --- a/build.sh +++ b/build.sh @@ -211,6 +211,10 @@ case "$IMAGE_TYPE" in fi debug "ver_simple_cdd: $ver_simple_cdd" ;; + *) + echo "ERROR: Unsupported IMAGE_TYPE selected ($IMAGE_TYPE)" >&2 + exit 1 + ;; esac # We need root rights at some point