aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMax Howell2009-11-08 16:23:08 +0000
committerMax Howell2009-11-08 16:23:08 +0000
commitbc364655fc7340e42f1ecfeba66d0d51f8e67f4f (patch)
tree93dbf050bb05647cf6bb1bc1973bf0b409d4b5f9 /bin
parentc35887b6f3cce380feb8fc7502e8287d97ce8f5f (diff)
downloadbrew-bc364655fc7340e42f1ecfeba66d0d51f8e67f4f.tar.bz2
Don't error out before Cellar is created
We need a test for this.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index a961c9bda..716916c76 100755
--- a/bin/brew
+++ b/bin/brew
@@ -198,7 +198,7 @@ begin
abort "Sorry, Homebrew does not support your computer's CPU architecture."
end
- raise "Cannot write to #{HOMEBREW_CELLAR}" unless HOMEBREW_CELLAR.writable?
+ 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?
################################################################# warnings