From 59bd4c18bd751b0c147de26661a558a4a0cdd8f7 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Thu, 4 Aug 2022 21:32:23 -0600 Subject: [PATCH] new race test --- functions/update_apps.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index ffde4255..e7273a25 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -29,17 +29,17 @@ do until [[ "$proc_count" -ge "$update_limit" || $it -ge ${#array[@]} ]] do update_apps "${array[$it]}" & - sleep 3 + sleep 1 processes+=($!) ((it++)) ((proc_count++)) done ((ttl++)) - # if [[ $ttl -eq 1 ]]; then - # sleep 20 - # else - # sleep 6 - # fi + if [[ $ttl -eq 1 ]]; then + sleep 20 + 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