Skip to content

Commit

Permalink
Don't error out before Cellar is created
Browse files Browse the repository at this point in the history
We need a test for this.
  • Loading branch information
mxcl committed Nov 8, 2009
1 parent bc32b13 commit 0a19a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/brew
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a19a05

Please sign in to comment.