Skip to content

Commit 33be839

Browse files
tarolSBoudrias
authored andcommittedJul 2, 2018
add options ignoreNoMatch to ignore zero check (#121)
1 parent ecae0c4 commit 33be839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/actions/copy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ exports.copy = function (from, to, options, context, tplSettings) {
4545
}
4646

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.