Closed mm2270 closed 7 years ago
@mm2270 I can confirm your changes ensure a correct creation of the plist and then deletion of the macOS installer after the reboot into sierra. Thanks.
Thanks @mm2270! I haven't had much time to look at this, so really appreciate this!
I'll run it through and test everything next week and get it updated.
Fixed in v1.7
Thank you @mm2270!
Hi there. Someone pointed me to this script to look at because they are using it and finding that the LaunchDaemon isn't working. It doesn't load and run the script to cleanup after the OS upgrade.
I took a look at it and found that the method being used to create the plist is creating an invalid plist because none of the double quotes within it are being retained.
My suggestion for fixing this are to change the section where it creates the LaunchDaemon to the following:
The HEREDOC method above retains the quotes and doesn't require using any backslashes to escape them in the plist.