Skip to content

Commit

Permalink
scripts/suspend: fix broken while/switch syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tokiclover committed Nov 12, 2014
1 parent 09d6bfc commit a9db859
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/suspend
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ usage() {
EOH
}

while [ $# > 1 ]; do
while [ $# -ge 1 ]; do
case "$1" in
(-c|--compression)
comp=$2;
shift 2;;
(-m|--method)
method=$2
shift 2;
shift 2;;
(-o|--option)
option=$2
shift 2;
shift 2;;
(-s|--size)
size=$2
shift 2;;
Expand All @@ -41,7 +41,7 @@ while [ $# > 1 ]; do
shift 2;;
(-H|--hibernate)
hibernate=true
shift;
shift;;
(-h|--help)
usage
exit;;
Expand Down

0 comments on commit a9db859

Please sign in to comment.