This commit is contained in:
Brian Zalewski 2023-12-25 01:02:53 +00:00
parent 857c88cfe7
commit 393474c294

View file

@ -164,8 +164,7 @@ upgradeDarwin() {
fi
### Reboot
logg info 'Reboot required'
{{ exit 140 }}
logg info 'Reboot required' && exit 140
# gtimeout 60 osascript -e 'tell application "Finder" to shut down' || OSASCRIPT_EXIT_CODE=$?
# 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'