using FileUtils.copy_entry instead of FileUtils.cp to allow symlinks
This commit is contained in:
parent
37cc45239d
commit
46bdaa49dc
|
@ -80,7 +80,7 @@ module Jekyll
|
|||
|
||||
FileUtils.mkdir_p(File.dirname(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)
|
||||
|
||||
true
|
||||
|
|
Loading…
Reference in New Issue