Skip to content

Commit

Permalink
add options ignoreNoMatch to ignore zero check (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarol authored and SBoudrias committed Jul 2, 2018
1 parent ecae0c4 commit 33be839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/actions/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ exports.copy = function (from, to, options, context, tplSettings) {
}

// Sanity checks: Makes sure we copy at least one file.
assert(files.length > 0, 'Trying to copy from a source that does not exist: ' + from);
assert(options.ignoreNoMatch || files.length > 0, 'Trying to copy from a source that does not exist: ' + from);

files.forEach(file => {
this._copySingle(file, generateDestination(file), options, context, tplSettings);
Expand Down

0 comments on commit 33be839

Please sign in to comment.