Actually wait for all jobs
This commit is contained in:
parent
05007708f6
commit
a3187a560a
@ -542,7 +542,7 @@ fi
|
||||
exec "$(getent passwd $LOGNAME | cut -d: -f7)"
|
||||
|
||||
# wait for all background jobs to finish
|
||||
wait $(jobs -p) && echo "Finished"
|
||||
wait && echo "Finished"
|
||||
|
||||
# exit successfully
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user