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.
This commit is contained in:
Mike McQuaid 2014-02-26 12:40:23 +00:00
parent 4a4b960558
commit 09330dd83b

View File

@ -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)