aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/pathname.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index c11775507..ae8e72eae 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -88,6 +88,7 @@ class Pathname
protected :install_symlink_p
# we assume this pathname object is a file obviously
+ alias_method :old_write, :write if method_defined?(:write)
def write content
raise "Will not overwrite #{to_s}" if exist?
dirname.mkpath