diff options
| author | Alyssa Ross | 2016-10-01 15:18:09 +0100 |
|---|---|---|
| committer | Alyssa Ross | 2016-10-01 15:18:09 +0100 |
| commit | e0d39cc3efdc91078184caf5210b88a14d6bae55 (patch) | |
| tree | b088a733b67cbd5650bc13b7ef219d6153e551d9 /Library/Homebrew/utils | |
| parent | cc59e624b05dbe227387c2f359deef6bfade3eb2 (diff) | |
| download | brew-e0d39cc3efdc91078184caf5210b88a14d6bae55.tar.bz2 | |
analytics: don't report commands run by Homebrew
Fixes #788.
Diffstat (limited to 'Library/Homebrew/utils')
| -rw-r--r-- | Library/Homebrew/utils/analytics.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/utils/analytics.sh b/Library/Homebrew/utils/analytics.sh index 24839709e..19b341fdc 100644 --- a/Library/Homebrew/utils/analytics.sh +++ b/Library/Homebrew/utils/analytics.sh @@ -70,6 +70,9 @@ setup-analytics() { report-analytics-screenview-command() { [[ -n "$HOMEBREW_NO_ANALYTICS" || -n "$HOMEBREW_NO_ANALYTICS_THIS_RUN" ]] && return + # Don't report commands that are invoked as part of other commands. + [[ "$HOMEBREW_COMMAND_DEPTH" != 1 ]] && return + # Don't report non-official commands. if ! [[ "$HOMEBREW_COMMAND" = "bundle" || "$HOMEBREW_COMMAND" = "services" || |
