I am trying to run a script to remove an app from our Macs. When I run it, the killall lines work and the rm -r lines do not. The error I get is, "No such file or directory". If I run any of the commands alone in Terminal, they all work. Any ideas what I am doing wrong?
Here is the script:
!/bin/sh
sudo killall EquitracLoginController
sudo killall EQLoginController
sudo rm -r /Applications/Utilities/EquitracPrinterUtilityX.app
sudo rm -r /Library/Printers/Equitrac/
sudo rm -r /Library/Application Support/Equitrac/