using FileUtils.copy_entry instead of FileUtils.cp to allow symlinks

This commit is contained in:
surrim 2016-03-05 23:31:16 +01:00
parent 37cc45239d
commit 46bdaa49dc
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ module Jekyll
FileUtils.mkdir_p(File.dirname(dest_path)) FileUtils.mkdir_p(File.dirname(dest_path))
FileUtils.rm(dest_path) if File.exist?(dest_path) FileUtils.rm(dest_path) if File.exist?(dest_path)
FileUtils.cp(path, dest_path) FileUtils.copy_entry(path, dest_path)
File.utime(@@mtimes[path], @@mtimes[path], dest_path) File.utime(@@mtimes[path], @@mtimes[path], dest_path)
true true