Merge pull request #2750 from MikeMcQuaid/no-auto-update-no-report-issue-prompt

brew: no issue report prompt unless autoupdating.
This commit is contained in:
Mike McQuaid 2017-06-08 12:46:40 +03:00 committed by GitHub
commit 8b29a07cfa

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