build-image.sh: remove redundant exit calls
[mbt-docker.git] / 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
       ;;