My script keeps dying with the error
./script.sh: 2: set: Illegal option -o pipefail
This is how I call it
var cp = require("child_process");
cp.exec("script.sh", function(){ console.log(...arguments); });
This is the script
set -e
set -o pipefail
ls .
...
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.