diff --git a/Library/Homebrew/utils/analytics.sh b/Library/Homebrew/utils/analytics.sh index 24480b1856..b37cd3e8e7 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 }