From d41e2ea5e8714d80948033c04165137f0d46e9ac Mon Sep 17 00:00:00 2001
From: Mike McQuaid <mike@mikemcquaid.com>
Date: Sat, 26 Nov 2016 15:14:21 +0000
Subject: [PATCH] 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.
---
 Library/Homebrew/cmd/update-report.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Library/Homebrew/cmd/update-report.rb b/Library/Homebrew/cmd/update-report.rb
index b4c18c9a3d..10b433dd25 100644
--- a/Library/Homebrew/cmd/update-report.rb
+++ b/Library/Homebrew/cmd/update-report.rb
@@ -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"
-- 
GitLab