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:
parent
159b0eea35
commit
5f4111d24a
@ -113,9 +113,8 @@ report-analytics-screenview-command() {
|
|||||||
"${args[@]}" \
|
"${args[@]}" \
|
||||||
--silent --output /dev/null &>/dev/null & disown
|
--silent --output /dev/null &>/dev/null & disown
|
||||||
else
|
else
|
||||||
echo "$HOMEBREW_CURL https://www.google-analytics.com/debug/collect" \
|
local url="https://www.google-analytics.com/debug/collect"
|
||||||
"${args[@]}"
|
echo "$HOMEBREW_CURL $url ${args[*]}"
|
||||||
"$HOMEBREW_CURL" https://www.google-analytics.com/debug/collect \
|
"$HOMEBREW_CURL" "$url" "${args[@]}"
|
||||||
"${args[@]}"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user