environment variables in Mac script or Terminal
I wrote a simple script to delete a shortcut off the desktop of the logged in user, but no commands work! I can't do anything as simple as 'unlink ~/Desktop/<filename>' , unlink '/Users/$USER/Desktop/<filename> , unlink $HOME/Desktop/<filename>'....even cd commands to those locations don't work . None of those paths are recognized either in a script or in the Terminal interface in Atera. Script version won't work running as System, and if run as Current User I get a "user is not logged in" error
7
votes
