From 8af787f2d4f77055bf91b3acfa5e000ee25249dd Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Wed, 10 Aug 2022 22:27:49 -0600 Subject: [PATCH] revert, un-needed due to condition above it --- functions/update_apps.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index afa35d51..078b6cd8 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -78,12 +78,11 @@ do sleep 3 elif [[ $it -lt ${#array[@]} ]]; then loop=0 - until [[ $loop -ge 2 || $proc_count -ge $update_limit || $it -ge ${#array[@]} ]]; + until [[ $loop -ge 2 || $it -ge ${#array[@]} ]]; do update_apps "${array[$it]}" & processes+=($!) ((loop++)) - ((proc_count++)) ((it++)) done elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish