diff options
| author | Mike McQuaid | 2016-04-23 14:27:09 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-04-23 14:27:09 +0100 |
| commit | 1451553188276117a574b2abe8957cb60ef7ced7 (patch) | |
| tree | 394ca955f96e237b438e5d2a2ac3ec1e0b9552d4 /Library | |
| parent | c20622ade474a1c34a26872e6cc25dd592bc75a8 (diff) | |
| download | brew-1451553188276117a574b2abe8957cb60ef7ced7.tar.bz2 | |
Ship analytics for Homebrew.
For more information and opt-out instructions please read:
https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md#analytics
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/manpages/brew.1.md.erb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/utils/analytics.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/utils/analytics.sh | 2 |
3 files changed, 0 insertions, 5 deletions
diff --git a/Library/Homebrew/manpages/brew.1.md.erb b/Library/Homebrew/manpages/brew.1.md.erb index 92acb86ee..6e5cfb71d 100644 --- a/Library/Homebrew/manpages/brew.1.md.erb +++ b/Library/Homebrew/manpages/brew.1.md.erb @@ -169,8 +169,6 @@ can take several different forms: * `HOMEBREW_NO_ANALYTICS`: If set, Homebrew will not send analytics. See: <https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md#analytics> - *Note:* Homebrew currently disables analytics by default. - * `HOMEBREW_NO_EMOJI`: If set, Homebrew will not print the `HOMEBREW_INSTALL_BADGE` on a successful build. diff --git a/Library/Homebrew/utils/analytics.rb b/Library/Homebrew/utils/analytics.rb index 44e14dd1d..caf2a15c1 100644 --- a/Library/Homebrew/utils/analytics.rb +++ b/Library/Homebrew/utils/analytics.rb @@ -8,7 +8,6 @@ def analytics_label end def report_analytics(type, metadata = {}) - return unless ENV["HOMEBREW_ANALYTICS"] return if ENV["HOMEBREW_NO_ANALYTICS"] args = %W[ diff --git a/Library/Homebrew/utils/analytics.sh b/Library/Homebrew/utils/analytics.sh index 20c59fc49..b0041a1d8 100644 --- a/Library/Homebrew/utils/analytics.sh +++ b/Library/Homebrew/utils/analytics.sh @@ -1,5 +1,4 @@ setup-analytics() { - [[ -z "$HOMEBREW_ANALYTICS" ]] && return [[ -n "$HOMEBREW_NO_ANALYTICS" ]] && return # User UUID file. Used for Homebrew user counting. Can be deleted and @@ -27,7 +26,6 @@ setup-analytics() { } report-analytics-screenview-command() { - [[ -z "$HOMEBREW_ANALYTICS" ]] && return [[ -n "$HOMEBREW_NO_ANALYTICS" ]] && return # Don't report non-official commands. |
