mcreboot.sh: Fix error reporting for missing argment

Change-Id: I3af99d7a117d4401c2e0a143fa74513094a53302
This commit is contained in:
Masamichi Takagi
2018-07-30 19:12:59 +09:00
parent 70e52faf36
commit 27e55b8cf1

View File

@ -50,7 +50,7 @@ umask_old=`umask`
idle_halt=""
allow_oversubscribe=""
while getopts :stk:c:m:o:f:r:q:i:d:e:hO OPT
while getopts stk:c:m:o:f:r:q:i:d:e:hO OPT
do
case ${OPT} in
f) facility=${OPTARG}
@ -81,8 +81,8 @@ do
;;
O) allow_oversubscribe="allow_oversubscribe"
;;
*) echo "invalid option -${OPT}" >&2
exit 1
\?) exit 1
;;
esac
done