Comparing version 1.5.1 to 1.5.2
@@ -297,3 +297,8 @@ 'use strict'; | ||
file.copy = function copy(srcpath, destpath, options) { | ||
if (file._isSymbolicLink(srcpath)) { | ||
if (file.isLink(destpath)) { | ||
// in case destpath is a symlink, avoid following the symlink, instead overwrite it later | ||
fs.unlinkSync(destpath); | ||
} | ||
if (file.isLink(srcpath)) { | ||
file._copySymbolicLink(srcpath, destpath); | ||
@@ -456,7 +461,2 @@ } else if (file.isDir(srcpath)) { | ||
file._isSymbolicLink = function() { | ||
var filepath = path.join.apply(path, arguments); | ||
return fs.lstatSync(filepath).isSymbolicLink(); | ||
}; | ||
file._copySymbolicLink = function(srcpath, destpath) { | ||
@@ -463,0 +463,0 @@ var destdir = path.join(destpath, '..'); |
{ | ||
"name": "grunt", | ||
"description": "The JavaScript Task Runner", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"author": "Grunt Development Team (https://gruntjs.com/development-team)", | ||
@@ -6,0 +6,0 @@ "homepage": "https://gruntjs.com/", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78356