Skip to content
Snippets Groups Projects
Commit 598b29ce authored by fauno's avatar fauno
Browse files

fallback to copy if files are in different devices

closes #1
parent 5b2f16f0
No related tags found
1 merge request!1fallback to copy if files are in different devices
......@@ -18,7 +18,12 @@ module Jekyll
self.class.mtimes[path] = mtime
FileUtils.mkdir_p(File.dirname(dest_path))
FileUtils.ln(path, dest_path)
begin
FileUtils.ln(path, dest_path)
rescue Errno::EXDEV
copy_file(dest_path)
end
end
private
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment