mirror of
https://github.com/flynx/photobook.git
synced 2025-10-29 10:20:08 +00:00
better error checking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
95c9f86892
commit
dc05a7c3c4
@ -60,10 +60,9 @@ while true ; do
|
||||
exit
|
||||
;;
|
||||
-p|--prefix)
|
||||
PREFIX=$2
|
||||
shift
|
||||
PREFIX=$1
|
||||
shift
|
||||
continue
|
||||
;;
|
||||
|
||||
# handle unknown options...
|
||||
|
||||
@ -177,6 +177,12 @@ while true ; do
|
||||
shift
|
||||
;;
|
||||
|
||||
# handle unknown options...
|
||||
-*|--*)
|
||||
echo "Error: unknown option \"$1\""
|
||||
exit
|
||||
;;
|
||||
|
||||
*)
|
||||
break
|
||||
;;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user