sindresorhus/grunt-shell — pull request #20 by oldskool73 (2013-02-23 05:36:58+00:00)
Title: fix : with failOnError true, exit code is still 0 after error

Hi,

I'm using this plugin to run PHPUnit in a grunt task fired by a git pre-commit hook, and need the hook to fail if phpUnit fails. Currently even with failOnError set to true, the error code returned from grunt after a failed and aborted run is 0. This fix makes the task die spectacularly on fail and reports a non zero error code back to the shell.

Cheers,
Adam