diff options
| -rw-r--r-- | Library/Homebrew/global.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index c7c6d6681..9e3af1ee8 100644 --- a/Library/Homebrew/global.rb +++ b/Library/Homebrew/global.rb @@ -26,17 +26,14 @@ def cache if home_cache.directory? and home_cache.writable_real? home_cache else - root_cache = Pathname.new("/Library/Caches/Homebrew") - class << root_cache - alias :oldmkpath :mkpath + Pathname.new("/Library/Caches/Homebrew").extend Module.new { def mkpath unless exist? - oldmkpath + super chmod 0777 end end - end - root_cache + } end end end |
