title: Run Shellscript from Mac Automator
body: <p>In OS X 10.9.5</p>
  
  <p>I wrote a Shell Script (via vim). Save it and navigate to this script and</p>
  
  <p><code>sh code.sh</code>it runs perfect (in iTerm &amp; Total Terminal).</p>
  
  <p>The same command in the same directory produces via Mac Automator always an ERROR. Why?</p>
  
  in Automator and in Terminal.
  
  <p><code>echo $SHELL
  /bin/bash
  </code>
  Why is it impossible to run a shellscript via Automator. <img src="https://i.stack.imgur.com/Hmb3X.png" alt="enter image description here"></p>