Skip to content

Commit 2e9161c

Browse files
committedApr 11, 2022
More updates
1 parent 04b960e commit 2e9161c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎lib/grunt/file.js

+4
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,10 @@ file._copySymbolicLink = function(srcpath, destpath) {
467467
file.mkdir(destdir);
468468
var mode = grunt.file.isDir(srcpath) ? 'dir' : 'file';
469469
var destpath = path.join(destpath, fileBase);
470+
if (fs.existsSync(destpath)) {
471+
// skip symlink if file already exists
472+
return;
473+
}
470474
return fs.symlinkSync(srcpath, destpath, mode);
471475
};
472476

0 commit comments

Comments
 (0)
Please sign in to comment.