aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2017-06-08 12:46:40 +0300
committerGitHub2017-06-08 12:46:40 +0300
commit8b29a07cfafd6139c325bd8449a9d10ebcb89ca5 (patch)
treec2d8fe274dbf95895db498c441cc329df0a1f47d /Library/Homebrew
parent882f64169c33f9f8559495eeb717d78c57f2319f (diff)
parent10549d13f485605ef695699dafc8d06175baf20f (diff)
downloadbrew-8b29a07cfafd6139c325bd8449a9d10ebcb89ca5.tar.bz2
Merge pull request #2750 from MikeMcQuaid/no-auto-update-no-report-issue-prompt
brew: no issue report prompt unless autoupdating.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/brew.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/brew.rb b/Library/Homebrew/brew.rb
index 7222f7e87..1724bfa44 100644
--- a/Library/Homebrew/brew.rb
+++ b/Library/Homebrew/brew.rb
@@ -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