Commit 0bb5e658 authored by Toon Claes's avatar Toon Claes

Merge branch 'fix-erb-renderer-on-linux' into 'master'

Update lib/gdk/erb_renderer.rb

See merge request !713
parents fcdbaedc 59558bb9
# 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