Closed patgmac closed 5 years ago
Do you have steps to reproduce this? Host OS Version? Hardware Model? What update is being installed? Any log results? Usually softwareupdate will log to /var/log/install.log
@patgmac I finally got my hands on a MacBook Pro where I could reproduce the issue and it had a firmware update that required a shutdown. The latest version of my script should now properly take the right shutdown or restart action.
I have found that on T2 machines, the update does not actually finish installing after the reboot. I believe this is because the way the script is rebooting the system. I have had success by using the --restart flag with softwareupdate, which knows how to handle shutdown vs restart depending on the update.
I'm working on creating a PR for this now.