mcreboot.sh: Fix error reporting for missing argment
Change-Id: I3af99d7a117d4401c2e0a143fa74513094a53302
This commit is contained in:
@ -50,7 +50,7 @@ umask_old=`umask`
|
|||||||
idle_halt=""
|
idle_halt=""
|
||||||
allow_oversubscribe=""
|
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
|
do
|
||||||
case ${OPT} in
|
case ${OPT} in
|
||||||
f) facility=${OPTARG}
|
f) facility=${OPTARG}
|
||||||
@ -81,8 +81,8 @@ do
|
|||||||
;;
|
;;
|
||||||
O) allow_oversubscribe="allow_oversubscribe"
|
O) allow_oversubscribe="allow_oversubscribe"
|
||||||
;;
|
;;
|
||||||
*) echo "invalid option -${OPT}" >&2
|
\?) exit 1
|
||||||
exit 1
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user