Merge pull request #6054 from follower/patch-1

Fix check_for_unsupported_macos() on outdated releases
This commit is contained in:
Mike McQuaid 2019-04-23 23:23:37 -07:00 committed by GitHub
commit bb2779ecf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ module Homebrew
def check_for_unsupported_macos
return if ARGV.homebrew_developer?
who = "We"
who = +"We"
if OS::Mac.prerelease?
what = "pre-release version"
elsif OS::Mac.outdated_release?
@ -56,6 +56,7 @@ module Homebrew
else
return
end
who.freeze
<<~EOS
You are using macOS #{MacOS.version}.