aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2011-07-29 16:57:22 +0100
committerMax Howell2011-07-30 11:03:34 +0100
commit1cfad8f50240efa133aaf1f979ade3de551bc3d5 (patch)
tree0a8fa4cad7fc8cf44dbf43c4479bd13247b4de47 /Library
parente354b70db36030c24b4385cf1477bfc6bec3313a (diff)
downloadbrew-1cfad8f50240efa133aaf1f979ade3de551bc3d5.tar.bz2
Don't abort if /usr/local is not writable
Since this is our new policy for /usr/local.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/install.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index 00f978d02..e31b1b35e 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -23,7 +23,7 @@ module Homebrew extend self
def check_writable_install_location
raise "Cannot write to #{HOMEBREW_CELLAR}" if HOMEBREW_CELLAR.exist? and not HOMEBREW_CELLAR.writable?
- raise "Cannot write to #{HOMEBREW_PREFIX}" unless HOMEBREW_PREFIX.writable?
+ raise "Cannot write to #{HOMEBREW_PREFIX}" unless HOMEBREW_PREFIX.writable? or HOMEBREW_PREFIX.to_s == '/usr/local'
end
def check_cc