Don't error out before Cellar is created

We need a test for this.
This commit is contained in:
Max Howell 2009-11-08 16:23:08 +00:00
parent c35887b6f3
commit bc364655fc

View File

@ -198,7 +198,7 @@ begin
abort "Sorry, Homebrew does not support your computer's CPU architecture." abort "Sorry, Homebrew does not support your computer's CPU architecture."
end 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? raise "Cannot write to #{HOMEBREW_PREFIX}" unless HOMEBREW_PREFIX.writable?
################################################################# warnings ################################################################# warnings