diff options
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |