diff options
| author | Martin Afanasjew | 2016-08-09 21:24:39 +0200 | 
|---|---|---|
| committer | Martin Afanasjew | 2016-08-09 21:24:39 +0200 | 
| commit | 5f4111d24a7ced6220ffa92d088559a86bc1c335 (patch) | |
| tree | 8579401b4f177d3e0ffaf307bce8cc16a0730927 /Library/Homebrew/utils/analytics.sh | |
| parent | 159b0eea3591b5be6221931df6d4623998235878 (diff) | |
| download | brew-5f4111d24a7ced6220ffa92d088559a86bc1c335.tar.bz2 | |
utils/analytics.sh: tweak output in debug mode
Avoid some duplication (thereby also shortening line length) and put
everything in a single string for output via `echo`.
Diffstat (limited to 'Library/Homebrew/utils/analytics.sh')
| -rw-r--r-- | Library/Homebrew/utils/analytics.sh | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/Library/Homebrew/utils/analytics.sh b/Library/Homebrew/utils/analytics.sh index 24480b185..b37cd3e8e 100644 --- a/Library/Homebrew/utils/analytics.sh +++ b/Library/Homebrew/utils/analytics.sh @@ -113,9 +113,8 @@ report-analytics-screenview-command() {        "${args[@]}" \        --silent --output /dev/null &>/dev/null & disown    else -    echo "$HOMEBREW_CURL https://www.google-analytics.com/debug/collect" \ -      "${args[@]}" -    "$HOMEBREW_CURL" https://www.google-analytics.com/debug/collect \ -      "${args[@]}" +    local url="https://www.google-analytics.com/debug/collect" +    echo "$HOMEBREW_CURL $url ${args[*]}" +    "$HOMEBREW_CURL" "$url" "${args[@]}"    fi  }  | 
