Skip to main content

Hello All,

Very new and still learning to scripting but I came across this restart reminder script and having issue with the script not restarting the Mac. I want to add a hard shutdown comment due to FileVault and T2 chip but can't find a spot to add it.
thanks for you help in advance.

On line 46 change

#reboot

to

shutdown -h now

That will force a shutdown, however, if you are simply wanting a reboot you just need to remove the # which is commenting the restart command out.


@drtaru OMG that works, I feel like such a noob. Thank you!


Or shutdown -r now.