From 76f7abe4e110c3e5a9d1f322e1ca2f3be538898c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 17 Oct 2022 15:07:47 +0200 Subject: [PATCH] build-image.sh: remove redundant exit calls MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- build-image.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build-image.sh b/build-image.sh index 14efb6a..1ffbf30 100755 --- a/build-image.sh +++ b/build-image.sh @@ -24,18 +24,17 @@ while getopts "n:h" option; do else echo "Error: Unknown image name for option argument -${OPTARG}" >&2; usage - exit 1 fi ;; \?) # Invalid option echo "Error: Unknown or invalid option argument for -${OPTARG}" >&2; usage - exit 1;; + ;; :) echo "Error: Missing option argument for -${OPTARG}" >&2; usage - exit 1;; + ;; *|h) usage ;; -- 2.34.1