From 4df204e15b2f380ca287214d817f6e3b97be68d9 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Mon, 8 Aug 2022 22:44:51 -0600 Subject: [PATCH] combo sleep --- functions/update_apps.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index d6069fe3..57daeb88 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -38,16 +38,16 @@ do do update_apps "${array[$it]}" & processes+=($!) - sleep 3 + sleep 1 ((it++)) ((proc_count++)) done - # ((ttl++)) - # if [[ $ttl -eq 1 ]]; then - # sleep 15 - # else - # sleep 6 - # fi + ((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