From 8e912630310f913d7fd7397dbd640853f2ebc7bb Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Wed, 28 Sep 2016 16:55:57 -0700 Subject: [PATCH] StaticFile#copy_entry: don't mark modified time if path is a symlink --- lib/jekyll/static_file.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/jekyll/static_file.rb b/lib/jekyll/static_file.rb index 0f8544ee..e11d6689 100644 --- a/lib/jekyll/static_file.rb +++ b/lib/jekyll/static_file.rb @@ -146,7 +146,10 @@ module Jekyll else FileUtils.copy_entry(path, dest_path) end - File.utime(self.class.mtimes[path], self.class.mtimes[path], dest_path) + + unless File.symlink?(dest_path) + File.utime(self.class.mtimes[path], self.class.mtimes[path], dest_path) + end end end end