title: How to get rid of 'command not found' from bash scripts on Mac OSX?
body: <p>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: </p>
  
  <pre><code>cat /usr/local/bin/en-deploy 
  </code></pre>
  
  <p>You can see I wrote this script:</p>
  
  <pre><code>#Bash
  #!/bin/sh
  curl ec2-14-43-7-17.compute-1.amazonaws.com:10000 -d $1; 
  </code></pre>
  
  <p>This script works great, but when I call it, I get: </p>
  
  <pre><code>Your branch is up-to-date with 'origin/master'.
  : command not foundeploy: line 3: 
  </code></pre>
  
  <p>The first line is the expected output. The second line is just weird. What do I need to do to get rid of it? </p>
  
  <p>UPDATE:</p>
  
  <p>If I edit the file to: </p>
  
  <pre><code>  #!/bin/bash
    curl ec2-54-173-70-97.compute-1.amazonaws.com:30000 -d $1;
  </code></pre>
  
  <p>I get: </p>
  
  <pre><code>  -bash: /usr/local/bin/en-deploy: /bin/bash^M: bad interpreter: No such file or directory
  </code></pre>