We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04b960e commit 2e9161cCopy full SHA for 2e9161c
lib/grunt/file.js
@@ -467,6 +467,10 @@ file._copySymbolicLink = function(srcpath, destpath) {
467
file.mkdir(destdir);
468
var mode = grunt.file.isDir(srcpath) ? 'dir' : 'file';
469
var destpath = path.join(destpath, fileBase);
470
+ if (fs.existsSync(destpath)) {
471
+ // skip symlink if file already exists
472
+ return;
473
+ }
474
return fs.symlinkSync(srcpath, destpath, mode);
475
};
476
0 commit comments