mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-29 17:50:23 +00:00
prepare: exit when passed incorrect parameters
Now script does not continue execution when an invalid argument is passed. Signed-off-by: Yug Gupta <ygupta@redhat.com>
This commit is contained in:
parent
34b07b8ad9
commit
917ec1e2f1
@ -18,6 +18,12 @@ opts=$(getopt \
|
||||
-- "$@"
|
||||
)
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo "Try '--help' for more information."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
eval set -- ${opts}
|
||||
|
||||
while true; do
|
||||
|
Loading…
Reference in New Issue
Block a user