update-report: allow skipping analytics message.

This is used by the install script so it can simplify it's logic and
make the analytics messaging more prominent.
This commit is contained in:
Mike McQuaid 2016-11-26 15:14:21 +00:00
parent 5dd8f45cb8
commit d41e2ea5e8

View File

@ -26,7 +26,7 @@ module Homebrew
analytics_disabled = \
Utils.popen_read("git", "config", "--local", "--get", "homebrew.analyticsdisabled").chuzzle
if analytics_message_displayed != "true" && analytics_disabled != "true" &&
!ENV["HOMEBREW_NO_ANALYTICS"]
!ENV["HOMEBREW_NO_ANALYTICS"] && !ENV["HOMEBREW_NO_ANALYTICS_MESSAGE_OUTPUT"]
ENV["HOMEBREW_NO_ANALYTICS_THIS_RUN"] = "1"
# Use the shell's audible bell.
print "\a"