title: Shell Script won't run from NodeJS because it has "set -o pipefail"
body: <p>My script keeps dying with the error</p>
  <pre><code>./script.sh: 2: set: Illegal option -o pipefail
  </code></pre>
  <p>This is how I call it</p>
  <pre><code>var cp = require(&quot;child_process&quot;);
  cp.exec(&quot;script.sh&quot;, function(){ console.log(...arguments); });
  </code></pre>
  <p>This is the script</p>
  <pre><code>set -e
  set -o pipefail
  
  ls .
  ...
  </code></pre>
  <p>I put these lines in the script because they make it die if there is an error instead of continuing.  I don't know what they mean and was hoping someone could help.</p>