This commit is contained in:
Heavybullets8 2022-07-27 14:50:52 -06:00
parent 3da75f299d
commit ef43d3c214

View File

@ -28,10 +28,10 @@ do
update_apps "${array[$it]}" & update_apps "${array[$it]}" &
processes+=($!) processes+=($!)
((it++)) ((it++))
elif [[ ${#processes[@]} == 0 ]]; then elif [[ ${#processes[@]} != 0 ]]; then # Wait for all processes to finish
break
else
sleep 3 sleep 3
else
break
fi fi
done done
rm temp.txt rm temp.txt