build-image.sh: remove redundant exit calls
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 17 Oct 2022 13:07:47 +0000 (15:07 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 17 Oct 2022 13:07:47 +0000 (15:07 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
build-image.sh

index 14efb6a7a0f0541ec4b6706e4c246c6cf0f2fd4d..1ffbf30cc682879c6cf06dec77284030ddec0545 100755 (executable)
@@ -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
       ;;