aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-06-07 16:37:39 +0100
committerMike McQuaid2017-06-07 16:37:39 +0100
commit10549d13f485605ef695699dafc8d06175baf20f (patch)
treeff234d839779c8ea8ae59922614fc4b1d68fe7dd /Library
parentcfc40196f22fd07cf62a6f51ee22915485bb4c09 (diff)
downloadbrew-10549d13f485605ef695699dafc8d06175baf20f.tar.bz2
brew: no issue report prompt unless autoupdating.
Otherwise: you may be on an old enough version that we don't care.
Diffstat (limited to 'Library')
-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