Added exit to reboot section
This commit is contained in:
parent
8756669c0b
commit
7d541c9798
1 changed files with 1 additions and 0 deletions
|
@ -170,6 +170,7 @@ upgradeDarwin() {
|
||||||
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'
|
||||||
fi
|
fi
|
||||||
|
exit 0
|
||||||
else
|
else
|
||||||
logg info 'No reboot required for softwareupdate'
|
logg info 'No reboot required for softwareupdate'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue