remove indents, test sleep timer async

This commit is contained in:
Heavybullets8 2022-08-08 22:28:09 -06:00
parent f3e66e9327
commit 721dadf09e
3 changed files with 234 additions and 233 deletions

View File

@ -30,15 +30,16 @@ do
do do
update_apps "${array[$it]}" & update_apps "${array[$it]}" &
processes+=($!) processes+=($!)
sleep 2
((it++)) ((it++))
((proc_count++)) ((proc_count++))
done done
((ttl++)) # ((ttl++))
if [[ $ttl -eq 1 ]]; then # if [[ $ttl -eq 1 ]]; then
sleep 15 # sleep 15
else # else
sleep 6 # sleep 6
fi # fi
elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish
sleep 6 sleep 6
else # All processes must be completed, break out of loop else # All processes must be completed, break out of loop