1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-04 14:05:41 -07:00

kiss: Bye bye ternary

This commit is contained in:
Dylan Araps 2020-05-24 21:04:33 +03:00
parent fd91d64169
commit fc1734c36c
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

2
kiss
View File

@ -1381,7 +1381,7 @@ args() {
# since the first argument is always an "action" and the arguments that
# follow are all package names.
action=$1
shift "$(($# ? 1 : 0))"
shift "$(($# != 1))"
# Unless this is a search, sanitize the user's input. The call to
# 'pkg_find()' supports basic globbing, ensure input doesn't expand