prompt when invalid command line option is given.
This commit is contained in:
parent
fc52766606
commit
e3a05d7cfc
|
@ -52,7 +52,9 @@ case $i in
|
|||
shift # past argument with no value
|
||||
;;
|
||||
*)
|
||||
# unknown option
|
||||
# unknown option
|
||||
read -p "Unknown option $i, continue? (Y|n)"
|
||||
[[ $REPLY == [yY] ]] && { echo "continuing..."; } || exit 1;
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue