aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkiss5
1 files changed, 2 insertions, 3 deletions
diff --git a/kiss b/kiss
index 10e844d..11848a6 100755
--- a/kiss
+++ b/kiss
@@ -1223,9 +1223,8 @@ args() {
# the arguments that follow are all package names.
action=$1
- # 'dash' exits on error here if 'shift' is used and there are zero
- # arguments despite trapping the error ('|| :').
- shift "$(($# > 0 ? 1 : 0))"
+ # 'dash' gives an error when shift is used without any arguments.
+ [ "$1" ] && shift
# Unless this is a search, sanitize the user's input. The call to
# 'pkg_find()' supports basic globbing, ensure input doesn't expand