Add wait for background jobs

This commit is contained in:
exu 2023-09-24 13:20:38 +02:00
parent 486e82386e
commit 4c39500380

View File

@ -548,5 +548,8 @@ fi
# reload user default shell # reload user default shell
exec "$(getent passwd $LOGNAME | cut -d: -f7)" exec "$(getent passwd $LOGNAME | cut -d: -f7)"
# wait for all background jobs to finish
wait $(jobs -p)
# exit successfully # exit successfully
exit 0 exit 0