From 5f4111d24a7ced6220ffa92d088559a86bc1c335 Mon Sep 17 00:00:00 2001 From: Martin Afanasjew Date: Tue, 9 Aug 2016 21:24:39 +0200 Subject: 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`. --- Library/Homebrew/utils/analytics.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Library/Homebrew/utils/analytics.sh') 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 } -- cgit v1.2.3