diff options
Diffstat (limited to '')
-rwxr-xr-x | bosun | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -34,12 +34,11 @@ rebuild() { } list() { - subcmd="$1" + subcmd="${1:-active}" case $subcmd in active) list_active;; all) list_all;; available) list_available;; - *) list_active;; esac } @@ -64,7 +63,7 @@ list_available() { rm -f "$tmp" } -cmd="$1" +cmd="${1:-list}" test $# -gt 0 && shift case $cmd in add) add "$@";; @@ -72,5 +71,4 @@ case $cmd in list) list "$@";; rebuild) rebuild "$@";; remove) remove "$@";; - *) list_active;; esac |