Commit 59558bb9 authored by Nick Thomas's avatar Nick Thomas 🔴

Update lib/gdk/erb_renderer.rb

parent fcdbaedc
# frozen_string_literal: true
require 'erb'
require 'fileutils'
require 'tempfile'
module GDK
......@@ -24,7 +25,7 @@ module GDK
render!(temp_file.path)
return File.rename(temp_file.path, target) unless File.exist?(target)
return FileUtils.mv(temp_file.path, target) unless File.exist?(target)
warn!(temp_file) unless FileUtils.identical?(target, temp_file.path)
ensure
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment