Error running bash script - No matching processes
- by Bashity
I am trying to kill Xcode by running killall Xcode.app, which works normally when I run it through terminal. However, if I put it into a bash script that I keep on my Desktop called re_xcode, the script will output the following error. Please can you tell me where I am going wrong?
No matching processes belonging to you were found
The file /Users/Max/Desktop/Applications/Xcode.app does not exist.
#!/bin/bash
killall Xcode.app
open ./Applications/Xcode.app