Don't error out before Cellar is created
We need a test for this.
This commit is contained in:
parent
c35887b6f3
commit
bc364655fc
2
bin/brew
2
bin/brew
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user