utils/analytics.sh: fix style inconsistencies
This commit is contained in:
parent
2a943d0ad2
commit
b75516425b
@ -37,7 +37,7 @@ setup-analytics() {
|
|||||||
then
|
then
|
||||||
if [[ -n "$HOMEBREW_LINUX" ]]
|
if [[ -n "$HOMEBREW_LINUX" ]]
|
||||||
then
|
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" ]]
|
elif [[ -n "$HOMEBREW_OSX" ]]
|
||||||
then
|
then
|
||||||
HOMEBREW_ANALYTICS_USER_UUID="$(/usr/bin/uuidgen)"
|
HOMEBREW_ANALYTICS_USER_UUID="$(/usr/bin/uuidgen)"
|
||||||
@ -91,16 +91,16 @@ report-analytics-screenview-command() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
local args=(
|
local args=(
|
||||||
--max-time 3 \
|
--max-time 3
|
||||||
--user-agent "$HOMEBREW_USER_AGENT_CURL" \
|
--user-agent "$HOMEBREW_USER_AGENT_CURL"
|
||||||
-d v=1 \
|
-d v=1
|
||||||
-d tid="$HOMEBREW_ANALYTICS_ID" \
|
-d tid="$HOMEBREW_ANALYTICS_ID"
|
||||||
-d cid="$HOMEBREW_ANALYTICS_USER_UUID" \
|
-d cid="$HOMEBREW_ANALYTICS_USER_UUID"
|
||||||
-d aip=1 \
|
-d aip=1
|
||||||
-d an="$HOMEBREW_PRODUCT" \
|
-d an="$HOMEBREW_PRODUCT"
|
||||||
-d av="$HOMEBREW_VERSION" \
|
-d av="$HOMEBREW_VERSION"
|
||||||
-d t=screenview \
|
-d t=screenview
|
||||||
-d cd="$HOMEBREW_COMMAND" \
|
-d cd="$HOMEBREW_COMMAND"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Send analytics. Don't send or store any personally identifiable information.
|
# Send analytics. Don't send or store any personally identifiable information.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user