Skip to content

Commit

Permalink
More updates
Browse files Browse the repository at this point in the history
  • Loading branch information
vladikoff committed Apr 11, 2022
1 parent 04b960e commit 2e9161c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/grunt/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,10 @@ file._copySymbolicLink = function(srcpath, destpath) {
file.mkdir(destdir);
var mode = grunt.file.isDir(srcpath) ? 'dir' : 'file';
var destpath = path.join(destpath, fileBase);
if (fs.existsSync(destpath)) {
// skip symlink if file already exists
return;
}
return fs.symlinkSync(srcpath, destpath, mode);
};

Expand Down

0 comments on commit 2e9161c

Please sign in to comment.