From 485f2ee923f974b1f494f69c61a837318ba67033 Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Fri, 13 Sep 2013 16:13:59 -0400 Subject: [PATCH] [CB-3542] Fail create script if a copy fails. --- bin/lib/create.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/lib/create.js b/bin/lib/create.js index a2dc38a1..44b9b0fe 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);