Add wait for background jobs
This commit is contained in:
parent
486e82386e
commit
4c39500380
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user