aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils
diff options
context:
space:
mode:
authorMike McQuaid2016-04-12 12:17:56 +0100
committerMike McQuaid2016-04-12 12:17:56 +0100
commit4e8c6e633c3c746299169a9792ec3297099575af (patch)
treeb74bae5c3d8b6cbb94f87987b30849919308840e /Library/Homebrew/utils
parent548be81b34517e194c606c632373ffba8b412c34 (diff)
downloadbrew-4e8c6e633c3c746299169a9792ec3297099575af.tar.bz2
Document disabling of opt-in Homebrew analytics. (#79)
Diffstat (limited to 'Library/Homebrew/utils')
-rw-r--r--Library/Homebrew/utils/analytics.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Homebrew/utils/analytics.sh b/Library/Homebrew/utils/analytics.sh
index 015a62ab3..69d882eb9 100644
--- a/Library/Homebrew/utils/analytics.sh
+++ b/Library/Homebrew/utils/analytics.sh
@@ -17,10 +17,8 @@ setup-analytics() {
}
report-analytics-screenview-command() {
- if [[ -z "$HOMEBREW_ANALYTICS" || -n "$HOMEBREW_NO_ANALYTICS" ]]
- then
- return
- fi
+ [[ -z "$HOMEBREW_ANALYTICS" ]] && return
+ [[ -n "$HOMEBREW_NO_ANALYTICS" ]] && return
# Don't report non-official commands.
if ! [[ "$HOMEBREW_COMMAND" = "bundle" ||