doctor: skip Cellar test if Cellar doesn't exist

Fixes Homebrew/homebrew#5188 (again).
This commit is contained in:
Misty De Meo 2012-06-19 09:24:19 -05:00
parent 9ebb1a3d08
commit c2b057fc70

View File

@ -596,6 +596,7 @@ def check_for_DYLD_INSERT_LIBRARIES
end
def check_for_symlinked_cellar
return unless HOMEBREW_CELLAR.exist?
if HOMEBREW_CELLAR.symlink?
<<-EOS.undent
Symlinked Cellars can cause problems.