aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/brew_doctor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/brew_doctor.rb')
-rw-r--r--Library/Homebrew/brew_doctor.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb
index 76177d068..fddd33a44 100644
--- a/Library/Homebrew/brew_doctor.rb
+++ b/Library/Homebrew/brew_doctor.rb
@@ -54,10 +54,11 @@ def check_for_stray_dylibs
end
def check_for_x11
- unless File.exists? '/usr/X11/lib/libpng.dylib'
+ unless x11_installed?
+ opoo "X11 not installed."
puts <<-EOS.undent
You don't have X11 installed as part of your Xcode installation.
- This isn't required for all formula, but is expected by some.
+ This isn't required for all formulae, but is expected by some.
EOS
end