aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2014-02-26 12:40:23 +0000
committerMike McQuaid2014-02-26 12:40:25 +0000
commit09330dd83b1f99a67c08748f0fc4582b1c478050 (patch)
tree5bc62bb8cd51c9664216128a006abcf4072d5830 /Library/Homebrew/cmd
parent4a4b960558b420676af25dfcd772cc5d4e35cc65 (diff)
downloadbrew-09330dd83b1f99a67c08748f0fc4582b1c478050.tar.bz2
doctor: tweak XQuartz check.
Sometimes (e.g. Homebrew/homebrew#27014) it may find an installed version but no prefix. In this case we still want to tell users if it's outdated.
Diffstat (limited to 'Library/Homebrew/cmd')
-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)