summaryrefslogtreecommitdiff
path: root/tool/generic_erb.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/generic_erb.rb')
-rw-r--r--tool/generic_erb.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/generic_erb.rb b/tool/generic_erb.rb
index 9e07f2f..6641b0e 100644
--- a/tool/generic_erb.rb
+++ b/tool/generic_erb.rb
@@ -24,7 +24,7 @@ erb = ERB.new(File.read(template), nil, '%-')
erb.filename = template
result = source ? erb.src : erb.result
if output
- if ifchange and (vpath.open(output) {|f| f.read} rescue nil) == result
+ if ifchange and (vpath.open(output, "rb") {|f| f.read} rescue nil) == result
puts "#{output} unchanged"
else
open(output, "wb") {|f| f.print result}