better error checking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2021-11-20 00:26:26 +03:00
parent 95c9f86892
commit dc05a7c3c4
2 changed files with 7 additions and 2 deletions

View File

@ -60,10 +60,9 @@ while true ; do
exit
;;
-p|--prefix)
PREFIX=$2
shift
PREFIX=$1
shift
continue
;;
# handle unknown options...

View File

@ -177,6 +177,12 @@ while true ; do
shift
;;
# handle unknown options...
-*|--*)
echo "Error: unknown option \"$1\""
exit
;;
*)
break
;;