Hello fellow jamfers,
I'm struggling with something here, I'm trying to write what I thought would be a simple script to remove a folder of templates, before I replace with new ones.
I'm finding that the RM command is not finding the files on all machines, mixed El Cap and Sierra, and that I have to specify .localized which makes me wary of the command running on the few machines I have over seas that run in French.
Any thoughts here?
This command,
rm -rf ~/Library/Group Containers/UBF8T346G9.Office/User Content.localized/Templates.localized/Insigniam
Seems required, and deleted the file on my computer
rm -rf ~/Library/Group Containers/UBF8T346G9.Office/User Content/Templates/Insigniam
This command, does not remove the folder, even though .localized does not show up in the Finder
Now when I run the command that works on my computer to my users, it doesn't seem to delete the folder on all my target machines, and because I'm using -rf, I suspect at least, I don't get any feedback, I did this purposely so that if the policy ran and this was a new user, I wouldn't get a false positive, as this script runs right before a new install of Microsoft Office templates which we roll out from time to time....
Hmmm, frustrating, anyone who can add light to this so I can create something more robust and reliable?
