You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2014/04/30 18:30:56 UTC

spec commit: Restore change that was accidently lost in a pull request.

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 <cm...@gmail.com>
Authored: Wed Apr 30 12:30:01 2014 -0400
Committer: Marcel Kinard <cm...@gmail.com>
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