diff options
| author | Jack Nagel | 2013-07-22 21:26:42 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-07-22 21:26:42 -0500 |
| commit | 3cf3749e6e9eaa243500109f5fc79e86aaaab570 (patch) | |
| tree | 887dc46cb03ce74e99c9c6c4a1f1c4a39348686a /Library | |
| parent | da774ad4d9a795911dd2ec44f6b9f6b808ae7240 (diff) | |
| download | homebrew-3cf3749e6e9eaa243500109f5fc79e86aaaab570.tar.bz2 | |
Pathname#write: don't check ARGV.force?
Closes #21390.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
