title: Bamboo bash script accept input
body: <p>I have the following bash script, it runs outside of bamboo, but when I put it in a bamboo task it errors out</p>
  
  <pre><code>#!/bin/bash
  if [ "$(ps -p "$$" -o comm=)" != "bash" ]; then
      bash "$0" "$@"
      exit "$?"
  fi
  
  npm adduser --registry https://privaterepo.com/repository/npm-all/ &lt;&lt;!
  $bamboo_NPM_USERNAME
  $bamboo_NPM_PASSWORD
  $bamboo_NPM_EMAIL
  !
  </code></pre>
  
  <p>Returns in the log</p>
  
  <blockquote>
    <p>npm ERR! cb() never called!<br>
    Username: Password:</p>
  </blockquote>
  
  <p>Is there a specific syntax to use inside a bamboo plan?</p>