From 3cf3749e6e9eaa243500109f5fc79e86aaaab570 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 22 Jul 2013 21:26:42 -0500 Subject: Pathname#write: don't check ARGV.force? Closes #21390. --- Library/Homebrew/extend/pathname.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 49eb6e6ec..b143b9225 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 -- cgit v1.2.3