brew: no issue report prompt unless autoupdating.

Otherwise: you may be on an old enough version that we don't care.
This commit is contained in:
Mike McQuaid 2017-06-07 16:37:39 +01:00
parent cfc40196f2
commit 10549d13f4

View File

@ -154,7 +154,8 @@ rescue MethodDeprecatedError => e
rescue Exception => e
Utils::Analytics.report_exception(e)
onoe e
if internal_cmd && defined?(OS::ISSUES_URL)
if internal_cmd && defined?(OS::ISSUES_URL) &&
!ENV["HOMEBREW_NO_AUTO_UPDATE"]
$stderr.puts "#{Tty.bold}Please report this bug:#{Tty.reset}"
$stderr.puts " #{Formatter.url(OS::ISSUES_URL)}"
end