aboutsummaryrefslogtreecommitdiff
path: root/gbpm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gbpm.sh')
-rwxr-xr-xgbpm.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbpm.sh b/gbpm.sh
index 3d4cc89..56ca244 100755
--- a/gbpm.sh
+++ b/gbpm.sh
@@ -113,7 +113,7 @@ cmd_get() {
}
cmd_set() {
- [[ -n "${1}" ]] || _die 'set command requires an argument'
+ [[ "${#}" -eq 0 ]] && _die 'set command requires an argument'
local dir dirs bn prefix pri match match_pri
@@ -191,7 +191,7 @@ case "${1}" in
'get')
cmd_get ;;
'set')
- cmd_set "${2}" ;;
+ cmd_set "${@:2}" ;;
'clear')
cmd_clear ;;
'version')