os: no “READ THIS” in unsupported configurations.

This commit is contained in:
Mike McQuaid 2019-01-21 12:39:08 +00:00
parent c3a46bc570
commit 8258ecc3ca
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -15,8 +15,12 @@ module OS
if OS.mac?
require "os/mac"
# Don't tell people to report issues on unsupported versions of macOS.
if !OS::Mac.prerelease? && !OS::Mac.outdated_release?
# Don't tell people to report issues on unsupported configurations.
if !OS::Mac.prerelease? &&
!OS::Mac.outdated_release? &&
!ENV["HOMEBREW_BUILD_FROM_SOURCE"] &&
ARGV.none? { |v| v.start_with?("--cc=") } &&
ENV["HOMEBREW_PREFIX"] == "/usr/local"
ISSUES_URL = "https://docs.brew.sh/Troubleshooting".freeze
end
PATH_OPEN = "/usr/bin/open".freeze