fix argument iteration

This commit is contained in:
2026-08-22 05:48:23 +02:00
parent 6b2847fec7
commit 32e88beedc
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -164,7 +164,7 @@ function arr_contains() {
local search=$1
shift
[ -z "$search" ] && return 1
while [ -n "$1" ]; do
while (( $# > 0 )); do
[ "$1" == "$search" ] && return 0
shift
done
@@ -209,7 +209,7 @@ action=''
cfgfile="$ETC_DIR/config"
args=()
while [ -n "$1" ]; do
while (( $# > 0 )); do
opt=$1
shift
if [ -z "$action" ]; then