Commit e9f2c74c by Dwight Engen Committed by Stéphane Graber

fix lxc-shutdown argument parsing

processing of -w or -r shifts an argument that isn't there, messing up other argument processing Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent 7af3759f
......@@ -62,6 +62,7 @@ while [ $# -gt 0 ]; do
case "$opt" in
-h|--help)
usage
exit 0
;;
-n|--name)
optarg_check $opt "$1"
......@@ -70,11 +71,9 @@ while [ $# -gt 0 ]; do
;;
-w|--wait)
dowait=1
shift
;;
-r|--reboot)
reboot=1
shift
;;
-t|--timeout)
optarg_check $opt "$1"
......@@ -94,6 +93,7 @@ while [ $# -gt 0 ]; do
*)
usage_err "unknown option '$opt'"
exit 1
;;
esac
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment