carthage: fix macOS version check.

This commit is contained in:
Mike McQuaid 2019-04-04 13:35:33 +01:00
parent 60790175da
commit 684f2002f6
No known key found for this signature in database
GPG key ID: 48A898132FD8EE70

View file

@ -15,7 +15,7 @@ class Carthage < Formula
depends_on :xcode => ["10.0", :build]
def install
if MacOS::Xcode.version >= "10.2" && MacOS.version < "10.14.4" && MacOS.version >= "10.14.4"
if MacOS::Xcode.version >= "10.2" && MacOS.version < "10.14.4" && MacOS.version >= "10.14"
odie "Xcode >=10.2 requires macOS >=10.14.4 to build Swift formulae."
end