Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

Commit 714d1e7

Browse files
committed
working ignoreFiles argument
1 parent 9ba4acd commit 714d1e7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/jobs/create.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -422,25 +422,24 @@ function create(params, cb) {
422422
var ignoreFilesArray = params.ignoreFiles.split(',')
423423
var ignoreFilesArrayFormatted = ignoreFilesArray.map(function(value, index, array) {
424424
try {
425-
var stats = fs.lstatSync(params.workspace + '/' + value.trim());
425+
var val = value.trim()
426+
var stats = fs.lstatSync(params.workspace + '/' + val);
426427
}
427428
catch(err) {
428429
var err = new Error('Error: ignoreFiles argument not found');
429430
return ifCliPrintErrorOnly(err);
430431
}
431432
if (stats.isDirectory()) {
432-
value = '**/' + value + '/**'
433+
val = '**/' + val + '/**'
433434
}
434-
return value
435+
return val
435436
})
436-
console.log(ignoreFilesArrayFormatted)
437437
ignoreGlob = ignoreGlob.concat(ignoreFilesArrayFormatted)
438438
} else {
439439
var err = new Error('Error: ignoreFiles argument should be folder or file name in string format');
440440
return ifCliPrintErrorOnly(err);
441441
}
442442
}
443-
console.log(ignoreGlob)
444443

445444
archive.pipe(output);
446445
if (stat.isDirectory()) {

0 commit comments

Comments
 (0)