This commit is contained in:
Brian Zalewski 2023-12-25 01:02:12 +00:00
parent 948eeb0e3d
commit 857c88cfe7

View file

@ -164,7 +164,8 @@ upgradeDarwin() {
fi fi
### Reboot ### 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=$? # gtimeout 60 osascript -e 'tell application "Finder" to shut down' || OSASCRIPT_EXIT_CODE=$?
# if [ -n "$OSASCRIPT_EXIT_CODE" ]; then # 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' # logg info 'Reboot required and failed to gracefully shutdown within 1 minute, so forcing reboot' && sudo sh -c 'shutdown -r now'