summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Horák <dan@danny.cz>2010-03-29 17:33:37 +0200
committerDan Horák <dan@danny.cz>2010-03-29 17:33:37 +0200
commit24492fb304b813c1864ce7376c17c2ebf762e76a (patch)
tree5f36d79b7a8ad5d9c22ec1429855ce3cd80dac99
parente1e86bc7220115e7e3c4afe23d26f298c15fb21c (diff)
downloadutils-24492fb304b813c1864ce7376c17c2ebf762e76a.tar.gz
utils-24492fb304b813c1864ce7376c17c2ebf762e76a.tar.xz
utils-24492fb304b813c1864ce7376c17c2ebf762e76a.zip
process command line in a cycle
-rw-r--r--device_cio_free6
1 files changed, 3 insertions, 3 deletions
diff --git a/device_cio_free b/device_cio_free
index a7bac3d..238d5ab 100644
--- a/device_cio_free
+++ b/device_cio_free
@@ -107,11 +107,10 @@ case $CMD in
esac
# process command line options
-if [ $# -gt 0 ]; then
+while [ $# -gt 0 ]; do
case $1 in
-V|--verbose)
VERBOSE=yes
- shift
;;
-h|--help)
usage
@@ -121,7 +120,8 @@ if [ $# -gt 0 ]; then
usage
;;
esac
-fi
+ shift
+done
if [ ! -f $BLACKLIST ]; then
echo "Error: $BLACKLIST kernel interface doesn't exist"