From: Jérôme Benoit Date: Mon, 17 Oct 2022 13:07:47 +0000 (+0200) Subject: build-image.sh: remove redundant exit calls X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=76f7abe4e110c3e5a9d1f322e1ca2f3be538898c;p=mbt-docker.git build-image.sh: remove redundant exit calls Signed-off-by: Jérôme Benoit --- 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 ;;