You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/09/14 05:08:24 UTC

[04/11] android commit: [CB-3542] Fail create script if a copy fails.

[CB-3542] Fail create script if a copy fails.


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/485f2ee9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/485f2ee9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/485f2ee9

Branch: refs/heads/master
Commit: 485f2ee923f974b1f494f69c61a837318ba67033
Parents: 129be6e
Author: Andrew Grieve <ag...@chromium.org>
Authored: Fri Sep 13 16:13:59 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Fri Sep 13 22:07:35 2013 -0400

----------------------------------------------------------------------
 bin/lib/create.js | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/485f2ee9/bin/lib/create.js
----------------------------------------------------------------------
diff --git a/bin/lib/create.js b/bin/lib/create.js
index a2dc38a..44b9b0f 100755
--- a/bin/lib/create.js
+++ b/bin/lib/create.js
@@ -99,6 +99,8 @@ module.exports.run = function(project_path, package_name, project_name, project_
     exec(create_cmd);
 
     console.log('Copying template files...');
+    // Automatically fail if any commands fail.
+    shell.config.fatal = true;
 
     // copy project template
     shell.cp('-r', path.join(project_template_dir, 'assets'), project_path);