Actually wait for all jobs

This commit is contained in:
exu 2023-11-10 13:21:31 +01:00
parent 05007708f6
commit a3187a560a

View File

@ -542,7 +542,7 @@ fi
exec "$(getent passwd $LOGNAME | cut -d: -f7)" exec "$(getent passwd $LOGNAME | cut -d: -f7)"
# wait for all background jobs to finish # wait for all background jobs to finish
wait $(jobs -p) && echo "Finished" wait && echo "Finished"
# exit successfully # exit successfully
exit 0 exit 0