diff options
| author | Xu Cheng | 2016-05-01 22:04:46 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-05-01 22:04:46 +0800 |
| commit | 98aff27317eaf50c869341e04562062ecd09bd85 (patch) | |
| tree | 94cbc46aa759141d4684d9c850468e1db507794f /Library/Homebrew/utils | |
| parent | 90d3317d7dc9d809d7fc8da15e824161a0ce3008 (diff) | |
| download | brew-98aff27317eaf50c869341e04562062ecd09bd85.tar.bz2 | |
add `brew analytics` command (#173)
Diffstat (limited to 'Library/Homebrew/utils')
| -rw-r--r-- | Library/Homebrew/utils/analytics.sh | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Library/Homebrew/utils/analytics.sh b/Library/Homebrew/utils/analytics.sh index 47716e5e5..2ca1c72e7 100644 --- a/Library/Homebrew/utils/analytics.sh +++ b/Library/Homebrew/utils/analytics.sh @@ -18,11 +18,9 @@ setup-analytics() { migrate-legacy-uuid-file - # Make disabling anlytics sticky if [[ -n "$HOMEBREW_NO_ANALYTICS" ]] then - git config --file="$git_config_file" --replace-all homebrew.analyticsdisabled true - git config --file="$git_config_file" --unset-all homebrew.analyticsuuid + return fi local message_seen="$(git config --file="$git_config_file" --get homebrew.analyticsmessage)" @@ -72,10 +70,11 @@ report-analytics-screenview-command() { # Don't report commands used mostly by our scripts and not users. # TODO: list more e.g. shell completion things here perhaps using a single # script as a shell-completion entry point. - if [[ "$HOMEBREW_COMMAND" = "commands" ]] - then - return - fi + case "$HOMEBREW_COMMAND" in + --prefix|analytics|command|commands) + return + ;; + esac local args=( --max-time 3 \ |
