summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/svol (renamed from scripts/setvol)3
-rwxr-xr-xscripts/swall (renamed from scripts/setwp)2
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/setvol b/scripts/svol
index 4bbc1ec..f973773 100755
--- a/scripts/setvol
+++ b/scripts/svol
@@ -52,10 +52,9 @@ while getopts "i:d:s:pth" option; do
h)
help
exit 0
- ;;
+ ;;
*)
err "Try \'${0} -h\' for help"
-
;;
esac
diff --git a/scripts/setwp b/scripts/swall
index 24994d8..6d3b854 100755
--- a/scripts/setwp
+++ b/scripts/swall
@@ -1,5 +1,7 @@
#!/bin/sh
+# TODO add the option error checking with optind
+
err() {
echo "${0}": "${1}"
exit 1