utils/analytics.sh: fix style inconsistencies

This commit is contained in:
Martin Afanasjew 2016-08-07 12:55:38 +02:00
parent 2a943d0ad2
commit b75516425b

View File

@ -37,7 +37,7 @@ setup-analytics() {
then
if [[ -n "$HOMEBREW_LINUX" ]]
then
HOMEBREW_ANALYTICS_USER_UUID="$(tr a-f A-F < /proc/sys/kernel/random/uuid)"
HOMEBREW_ANALYTICS_USER_UUID="$(tr a-f A-F </proc/sys/kernel/random/uuid)"
elif [[ -n "$HOMEBREW_OSX" ]]
then
HOMEBREW_ANALYTICS_USER_UUID="$(/usr/bin/uuidgen)"
@ -91,16 +91,16 @@ report-analytics-screenview-command() {
esac
local args=(
--max-time 3 \
--user-agent "$HOMEBREW_USER_AGENT_CURL" \
-d v=1 \
-d tid="$HOMEBREW_ANALYTICS_ID" \
-d cid="$HOMEBREW_ANALYTICS_USER_UUID" \
-d aip=1 \
-d an="$HOMEBREW_PRODUCT" \
-d av="$HOMEBREW_VERSION" \
-d t=screenview \
-d cd="$HOMEBREW_COMMAND" \
--max-time 3
--user-agent "$HOMEBREW_USER_AGENT_CURL"
-d v=1
-d tid="$HOMEBREW_ANALYTICS_ID"
-d cid="$HOMEBREW_ANALYTICS_USER_UUID"
-d aip=1
-d an="$HOMEBREW_PRODUCT"
-d av="$HOMEBREW_VERSION"
-d t=screenview
-d cd="$HOMEBREW_COMMAND"
)
# Send analytics. Don't send or store any personally identifiable information.