From fc1734c36c6e0705790d0efb0ffb978f6a2f417c Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 24 May 2020 21:04:33 +0300 Subject: [PATCH] kiss: Bye bye ternary --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiss b/kiss index 70a82b9..2280df8 100755 --- a/kiss +++ b/kiss @@ -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