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
|
exit
|
||||||
;;
|
;;
|
||||||
-p|--prefix)
|
-p|--prefix)
|
||||||
|
PREFIX=$2
|
||||||
shift
|
shift
|
||||||
PREFIX=$1
|
|
||||||
shift
|
shift
|
||||||
continue
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# handle unknown options...
|
# handle unknown options...
|
||||||
|
|||||||
@ -177,6 +177,12 @@ while true ; do
|
|||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
# handle unknown options...
|
||||||
|
-*|--*)
|
||||||
|
echo "Error: unknown option \"$1\""
|
||||||
|
exit
|
||||||
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user