All of the bash commands I've written for my Mac (10.11 El Capitan) work great, yet they throw an error when they are done running. So, for instance, if I do this:
cat /usr/local/bin/en-deploy
You can see I wrote this script:
#Bash
#!/bin/sh
curl ec2-14-43-7-17.compute-1.amazonaws.com:10000 -d $1;
This script works great, but when I call it, I get:
Your branch is up-to-date with 'origin/master'.
: command not foundeploy: line 3:
The first line is the expected output. The second line is just weird. What do I need to do to get rid of it?
UPDATE:
If I edit the file to:
#!/bin/bash
curl ec2-54-173-70-97.compute-1.amazonaws.com:30000 -d $1;
I get:
-bash: /usr/local/bin/en-deploy: /bin/bash^M: bad interpreter: No such file or directory