Don't wait after starting background jobs
@@ -4,16 +4,9 @@ TS=`date +%Y%m%d`
for i in 2 3 4 0w; do
if [ "$1" == "parallel" ]; then
screen -d -m ./build-release $i $TS
- pids[${i}]=$!
echo "Started $i build"
sleep 300
else
./build-release $i $TS
fi
done
-
-echo "Waiting for jobs to finish"
-for pid in ${pids[*]}; do
- wait $pid
-done
-echo "Done"
