Treat future SDKs as "latest"

Some SDKs return a number higher than the hard-coded `latest_version`
in this file. With the current `==` check, those higher version numbers
are treated as "not the latest". This prevents machines with
higher-versioned SDKs from being able to use Homebrew.

To resolve that problem, this PR changes the check to `>=`, which allows
machines with higher-versioned SDKs to also use Homebrew to install
packages.
This commit is contained in:
Andre Arko 2019-01-08 00:26:22 -08:00
parent 464b41eb52
commit e63eff2201
No known key found for this signature in database
GPG Key ID: BBE521252B9D156A

View File

@ -44,7 +44,7 @@ module OS
end
def latest_sdk_version?
OS::Mac.version == OS::Mac.latest_sdk_version
OS::Mac.version >= OS::Mac.latest_sdk_version
end
def needs_clt_installed?