Skip to content

Commit

Permalink
Merge pull request #210 from CumpsD/patch-1
Browse files Browse the repository at this point in the history
write files without magic conversion, fixes #209
  • Loading branch information
tongueroo authored Feb 21, 2022
2 parents 37fdf43 + 1d22ca1 commit dbbbec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/terraspace/compiler/writer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def write(content)
if content.respond_to?(:path) # IO filehandle
FileUtils.cp(content.path, dest_path) # preserves permission
else # just content
IO.write(dest_path, content)
IO.write(dest_path, content, mode: "wb")
end
logger.debug "Created #{Terraspace::Util.pretty_path(dest_path)}"
end
Expand Down

0 comments on commit dbbbec2

Please sign in to comment.