Repository: cordova-mobile-spec Updated Branches: refs/heads/master 2506a9976 -> 1e11f80f8
Restore change that was accidently lost in a pull request. Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/1e11f80f Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/1e11f80f Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/1e11f80f Branch: refs/heads/master Commit: 1e11f80f8b3fbb199c9342413e291726e465ec20 Parents: 2506a99 Author: Marcel Kinard <[email protected]> Authored: Wed Apr 30 12:30:01 2014 -0400 Committer: Marcel Kinard <[email protected]> Committed: Wed Apr 30 12:30:01 2014 -0400 ---------------------------------------------------------------------- createmobilespec/createmobilespec.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/1e11f80f/createmobilespec/createmobilespec.js ---------------------------------------------------------------------- diff --git a/createmobilespec/createmobilespec.js b/createmobilespec/createmobilespec.js index 5618a0b..05bd8e2 100755 --- a/createmobilespec/createmobilespec.js +++ b/createmobilespec/createmobilespec.js @@ -115,7 +115,10 @@ shelljs.exec(cordova_cli + " create mobilespec org.apache.cordova.mobilespec Mob // Executing grunt task, to generate updated js files for each platform shelljs.pushd(cordova_js); -shelljs.exec("grunt"); +var code = shelljs.exec("grunt").code; +if (code) { + process.exit(1); +} shelljs.popd(); // Config.json file ---> linked to local libraries
