Permalink
Browse files

Patch for pull request #44

  • Loading branch information...
1 parent ffca6d2 commit d396853ab7370b7e82003a1a877069633807b323 Ryan McGrath committed Dec 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/wrench.js
View
2 lib/wrench.js
@@ -205,7 +205,7 @@ exports.copyDirSyncRecursive = function(sourceDir, newDirLocation, opts) {
} else if(currFile.isSymbolicLink()) {
var symlinkFull = fs.readlinkSync(_path.join(sourceDir, files[i]));
- if (!opts.inflateSymlinks) {
+ if (typeof opts !== 'undefined' && !opts.inflateSymlinks) {
fs.symlinkSync(symlinkFull, _path.join(newDirLocation, files[i]));
continue;
}

0 comments on commit d396853

Please sign in to comment.