jharding/grunt-exec — pull request #18 by PeteAppleton (2013-06-11 15:46:24+00:00)
Title: Add option to specify expected exit code from exec'd program

Added a configuration option allowing the task to succeed if the exec'd program returns a non-zero exit code matching that configured in the option ('exitCode'). The specific use-case for this is execution of Windows Explorer targeted on an output directory - Explorer returns an exit code of 1 (!)