From bc364655fc7340e42f1ecfeba66d0d51f8e67f4f Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sun, 8 Nov 2009 16:23:08 +0000 Subject: [PATCH] Don't error out before Cellar is created We need a test for this. --- bin/brew | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/brew b/bin/brew index a961c9bdaa..716916c76b 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