From c52e1e86f930c1ba6f0bddc39904f880580668b4 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Thu, 4 Aug 2022 21:46:37 -0600 Subject: [PATCH] test --- functions/update_apps.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index 91390eb0..470c342a 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -29,12 +29,16 @@ do until [[ "$proc_count" -ge "$update_limit" || $it -ge ${#array[@]} ]] do update_apps "${array[$it]}" & - sleep 4 processes+=($!) ((it++)) ((proc_count++)) done ((ttl++)) + if [[ $ttl -eq 1 ]]; then + sleep 15 + else + sleep 6 + fi elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish sleep 6 else # All processes must be completed, break out of loop