combo sleep
This commit is contained in:
parent
1b238e2251
commit
4df204e15b
@ -38,16 +38,16 @@ do
|
|||||||
do
|
do
|
||||||
update_apps "${array[$it]}" &
|
update_apps "${array[$it]}" &
|
||||||
processes+=($!)
|
processes+=($!)
|
||||||
sleep 3
|
sleep 1
|
||||||
((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
|
||||||
|
Loading…
Reference in New Issue
Block a user