Latest
This commit is contained in:
parent
948eeb0e3d
commit
857c88cfe7
1 changed files with 2 additions and 1 deletions
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue