mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
[CB-3542] Fail create script if a copy fails.
This commit is contained in:
parent
129be6e476
commit
485f2ee923
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user