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

This commit is contained in:
Andrew Grieve 2013-09-13 16:13:59 -04:00
parent 129be6e476
commit 485f2ee923

View File

@ -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);