Skip to content
Snippets Groups Projects
Commit bc364655 authored by Max Howell's avatar Max Howell
Browse files

Don't error out before Cellar is created

We need a test for this.
parent c35887b6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment