remove indents, test sleep timer async
This commit is contained in:
parent
f3e66e9327
commit
721dadf09e
@ -30,15 +30,16 @@ do
|
||||
do
|
||||
update_apps "${array[$it]}" &
|
||||
processes+=($!)
|
||||
sleep 2
|
||||
((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
|
||||
|
Loading…
Reference in New Issue
Block a user