kiss: Remove shift math

This commit is contained in:
Dylan Araps 2020-03-11 18:27:00 +02:00
parent 34e2a79350
commit 18461ddedb
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

2
kiss
View File

@ -75,7 +75,7 @@ pop() {
# Remove an item from a "string list". This allows us # Remove an item from a "string list". This allows us
# to remove a 'sed' call and reuse this code throughout. # to remove a 'sed' call and reuse this code throughout.
del=$1 del=$1
shift "$(($# ? 1 : 0))" shift
for i; do [ "$i" = "$del" ] || printf %s " $i "; done for i; do [ "$i" = "$del" ] || printf %s " $i "; done
} }