aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2014-02-26 12:40:23 +0000
committerMike McQuaid2014-02-26 12:40:25 +0000
commit603d144edd591ce2cca2617927f43e930e479c53 (patch)
tree4fe00a142a82813210794eae4e4753ea67e9795e
parenta2126055a2966c8fdc03d899b63ca44d071dbbd6 (diff)
downloadhomebrew-603d144edd591ce2cca2617927f43e930e479c53.tar.bz2
doctor: tweak XQuartz check.
Sometimes (e.g. #27014) it may find an installed version but no prefix. In this case we still want to tell users if it's outdated.
-rw-r--r--Library/Homebrew/cmd/doctor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 71fd62e9c..ac2809cfc 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -1071,7 +1071,7 @@ end
end
def check_for_latest_xquartz
- return unless MacOS::XQuartz.installed?
+ return unless MacOS::XQuartz.version
return if MacOS::XQuartz.provided_by_apple?
installed_version = Version.new(MacOS::XQuartz.version)