From 116279db37b41b722c8c087724abe6c2f3dcb0b0 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Wed, 10 Aug 2022 22:35:30 -0600 Subject: [PATCH] sticking to one at a time, anymore is overloading --- functions/update_apps.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index 078b6cd8..b5f08e75 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -77,14 +77,14 @@ do if [[ "$proc_count" -ge "$update_limit" ]]; then sleep 3 elif [[ $it -lt ${#array[@]} ]]; then - loop=0 - until [[ $loop -ge 2 || $it -ge ${#array[@]} ]]; - do - update_apps "${array[$it]}" & - processes+=($!) - ((loop++)) - ((it++)) - done + # loop=0 + # until [[ $loop -ge 2 || $it -ge ${#array[@]} ]]; + # do + update_apps "${array[$it]}" & + processes+=($!) + ((loop++)) + ((it++)) + # done elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish sleep 3 else # All processes must be completed, break out of loop