aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index deb09daa1..79091b7db 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -751,6 +751,8 @@ end
def check_for_linked_keg_only_brews
require 'formula'
+ return unless HOMEBREW_CELLAR.exist?
+
warnings = Hash.new
Formula.each do |f|