Added exit to reboot section

This commit is contained in:
Brian Zalewski 2023-12-25 00:37:23 +00:00
parent 8756669c0b
commit 7d541c9798

View file

@ -170,6 +170,7 @@ upgradeDarwin() {
if [ -n "$OSASCRIPT_EXIT_CODE" ]; then
logg info 'Reboot required and failed to gracefully shutdown within 1 minute, so forcing reboot' && sudo sh -c 'shutdown -r now'
fi
exit 0
else
logg info 'No reboot required for softwareupdate'
fi