StaticFile#copy_entry: don't mark modified time if path is a symlink

This commit is contained in:
Parker Moore 2016-09-28 16:55:57 -07:00
parent fd5f2eb399
commit 8e91263031
No known key found for this signature in database
GPG Key ID: 193CDEBA72063C58
1 changed files with 4 additions and 1 deletions

View File

@ -146,7 +146,10 @@ module Jekyll
else else
FileUtils.copy_entry(path, dest_path) FileUtils.copy_entry(path, dest_path)
end end
unless File.symlink?(dest_path)
File.utime(self.class.mtimes[path], self.class.mtimes[path], dest_path) File.utime(self.class.mtimes[path], self.class.mtimes[path], dest_path)
end end
end end
end
end end