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`.
This commit is contained in:
Martin Afanasjew 2016-08-09 21:24:39 +02:00
parent 159b0eea35
commit 5f4111d24a

View File

@ -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
}