aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 4f2ffed6f..340d3ab3c 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -515,7 +515,8 @@ def check_for_iconv
end
def check_for_config_scripts
- real_cellar = HOMEBREW_CELLAR.exist? && HOMEBREW_CELLAR.realpath
+ return unless HOMEBREW_CELLAR.exist?
+ real_cellar = HOMEBREW_CELLAR.realpath
config_scripts = []
@@ -835,6 +836,7 @@ def check_for_outdated_homebrew
end
def check_for_unlinked_but_not_keg_only
+ return unless HOMEBREW_CELLAR.exist?
unlinked = HOMEBREW_CELLAR.children.reject do |rack|
if not rack.directory?
true