aboutsummaryrefslogtreecommitdiffstats
path: root/bosun
diff options
context:
space:
mode:
Diffstat (limited to 'bosun')
-rwxr-xr-xbosun3
1 files changed, 1 insertions, 2 deletions
diff --git a/bosun b/bosun
index 7d8efeb..b462b6b 100755
--- a/bosun
+++ b/bosun
@@ -35,7 +35,6 @@ rebuild() {
list() {
subcmd="$1"
- shift
case $subcmd in
active) list_active;;
all) list_all;;
@@ -66,7 +65,7 @@ list_available() {
}
cmd="$1"
-shift
+test $# -gt 0 && shift
case $cmd in
add) add "$@";;
flush) flush;;