aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils/analytics.rb
diff options
context:
space:
mode:
authorMartin Afanasjew2016-04-06 01:26:12 +0200
committerMartin Afanasjew2016-04-07 08:25:41 +0200
commite747648c53267111691e38f1f53c8951f7baf1b0 (patch)
treeba3a9f5f6bf311c1288e93208afaf4f239a324c0 /Library/Homebrew/utils/analytics.rb
parentf016a214702e2462693ca265b750d0641d62bd50 (diff)
downloadbrew-e747648c53267111691e38f1f53c8951f7baf1b0.tar.bz2
always prefer HOMEBREW_CURL over plain 'curl'
Diffstat (limited to 'Library/Homebrew/utils/analytics.rb')
-rw-r--r--Library/Homebrew/utils/analytics.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/utils/analytics.rb b/Library/Homebrew/utils/analytics.rb
index 9995a174f..15de20445 100644
--- a/Library/Homebrew/utils/analytics.rb
+++ b/Library/Homebrew/utils/analytics.rb
@@ -16,8 +16,8 @@ def report_analytics(type, metadata={})
# any personally identifiable information.
# https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide
# https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters
- system "curl", "https://www.google-analytics.com/collect", "-d", "v=1",
- "--silent", "--max-time", "3", "--output", "/dev/null",
+ system ENV["HOMEBREW_CURL"], "https://www.google-analytics.com/collect",
+ "-d", "v=1", "--silent", "--max-time", "3", "--output", "/dev/null",
"--user-agent", "#{HOMEBREW_USER_AGENT_CURL}",
"-d", "tid=#{ENV["HOMEBREW_ANALYTICS_ID"]}",
"-d", "cid=#{ENV["HOMEBREW_ANALYTICS_USER_UUID"]}",