From 1fb4cd501b58aeba30dbf903a496d1606da27868 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 22 Jul 2013 21:26:42 -0500 Subject: [PATCH] Pathname#write: don't check ARGV.force? Closes Homebrew/homebrew#21390. --- Library/Homebrew/extend/pathname.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 49eb6e6ec1..b143b92257 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -99,7 +99,7 @@ class Pathname # we assume this pathname object is a file obviously def write content - raise "Will not overwrite #{to_s}" if exist? and not ARGV.force? + raise "Will not overwrite #{to_s}" if exist? dirname.mkpath File.open(self, 'w') {|f| f.write content } end