forked from kiss-community/kiss
kiss: Remove shift math
This commit is contained in:
parent
34e2a79350
commit
18461ddedb
2
kiss
2
kiss
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user