forked from kiss-community/kiss
kiss: Smaller ternary
This commit is contained in:
parent
0e367daf53
commit
26599066ce
2
kiss
2
kiss
@ -1227,7 +1227,7 @@ args() {
|
|||||||
|
|
||||||
# 'dash' exits on error here if 'shift' is used and there are zero
|
# 'dash' exits on error here if 'shift' is used and there are zero
|
||||||
# arguments despite trapping the error ('|| :').
|
# arguments despite trapping the error ('|| :').
|
||||||
shift "$(($# > 0 ? 1 : 0))"
|
shift "$(($# ? 1 : 0))"
|
||||||
|
|
||||||
# Unless this is a search, sanitize the user's input. The call to
|
# Unless this is a search, sanitize the user's input. The call to
|
||||||
# 'pkg_find()' supports basic globbing, ensure input doesn't expand
|
# 'pkg_find()' supports basic globbing, ensure input doesn't expand
|
||||||
|
Loading…
Reference in New Issue
Block a user