From a9db859c9c7c96269f51614ca1a524f36ff000ba Mon Sep 17 00:00:00 2001 From: tokiclover Date: Wed, 12 Nov 2014 13:33:41 +0100 Subject: [PATCH] scripts/suspend: fix broken while/switch syntax --- scripts/suspend | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/suspend b/scripts/suspend index 84a4961..3d0597c 100755 --- a/scripts/suspend +++ b/scripts/suspend @@ -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;; @@ -41,7 +41,7 @@ while [ $# > 1 ]; do shift 2;; (-H|--hibernate) hibernate=true - shift; + shift;; (-h|--help) usage exit;;