diff options
-rw-r--r-- | tool/lib/output.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/lib/output.rb b/tool/lib/output.rb index cbaa4b5a3e..3a9f3d87ae 100644 --- a/tool/lib/output.rb +++ b/tool/lib/output.rb @@ -28,7 +28,8 @@ class Output updated = color.fail("updated") outpath = nil - if @ifchange and (@vpath.open(@path, "rb") {|f| outpath = f.path; f.read == data} rescue false) + if (@ifchange or overwrite) and + (@vpath.open(@path, "rb") {|f| outpath = f.path; f.read == data if @ifchange} rescue false) puts "#{outpath} #{unchanged}" written = false else |