From c05570885080d3ed92c8bcaf5acc3eecf6f381a9 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Mon, 5 Sep 2022 12:43:01 -0600 Subject: [PATCH] rename it to index --- functions/update_apps.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index 1ad97377..01962ff8 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -43,10 +43,10 @@ do ((index++)) done array=("${array[@]}") -[[ ${#array[@]} == 0 ]] && return +[[ ${#array[@]} == 0 ]] && echo && echo && return -it=0 +index=0 while_count=0 rm deploying 2>/dev/null rm finished 2>/dev/null @@ -75,10 +75,10 @@ do ((count++)) done processes=("${processes[@]}") - if [[ $it -lt ${#array[@]} && "${#processes[@]}" -lt "$update_limit" ]]; then - pre_process "${array[$it]}" & + if [[ $index -lt ${#array[@]} && "${#processes[@]}" -lt "$update_limit" ]]; then + pre_process "${array[$index]}" & processes+=($!) - ((it++)) + ((index++)) else sleep 3 fi