diff options
| author | Mike McQuaid | 2016-04-12 12:17:56 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-04-12 12:17:56 +0100 |
| commit | 4e8c6e633c3c746299169a9792ec3297099575af (patch) | |
| tree | b74bae5c3d8b6cbb94f87987b30849919308840e /Library/Homebrew/utils | |
| parent | 548be81b34517e194c606c632373ffba8b412c34 (diff) | |
| download | brew-4e8c6e633c3c746299169a9792ec3297099575af.tar.bz2 | |
Document disabling of opt-in Homebrew analytics. (#79)
Diffstat (limited to 'Library/Homebrew/utils')
| -rw-r--r-- | Library/Homebrew/utils/analytics.sh | 6 |
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" || |
