This repository was archived by the owner on Jun 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff 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 ( ) ) {
You can’t perform that action at this time.
0 commit comments