Update lib/wrench.js
Code crashes on this line if opts is undefined. I'm guessing that the default behavior should be that symlinked files gets copied as new files unless the option inflateSymlinks is set to false.
This commit is contained in:
parent
75af1f122b
commit
061c2e0387
1 changed files with 1 additions and 1 deletions
|
|
@ -205,7 +205,7 @@ exports.copyDirSyncRecursive = function(sourceDir, newDirLocation, opts) {
|
|||
} else if(currFile.isSymbolicLink()) {
|
||||
var symlinkFull = fs.readlinkSync(sourceDir + "/" + files[i]);
|
||||
|
||||
if (!opts.inflateSymlinks) {
|
||||
if (opts !== undefined && opts.inflateSymlinks === false) {
|
||||
fs.symlinkSync(symlinkFull, newDirLocation + "/" + files[i]);
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue