lib/xcbootstrap/template.rb in xcbootstrap-0.0.3 vs lib/xcbootstrap/template.rb in xcbootstrap-0.1.0
- old
+ new
@@ -16,10 +16,10 @@
end
def process
FileUtils.mkdir_p File.dirname(to)
- if File.binary? from
+ if File.binary?(from) || File.image?(from)
FileUtils.cp from, to
else
sed_copy from, to
end
end
\ No newline at end of file