readded "env=prod"-condition
This commit is contained in:
parent
64d5e3dfd3
commit
9be387ef6f
|
@ -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)
|
||||||
if @site.safe
|
if @site.safe || Jekyll.env == "production"
|
||||||
FileUtils.cp(path, dest_path)
|
FileUtils.cp(path, dest_path)
|
||||||
else
|
else
|
||||||
FileUtils.copy_entry(path, dest_path)
|
FileUtils.copy_entry(path, dest_path)
|
||||||
|
|
Loading…
Reference in New Issue