aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
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/cmd
parentf016a214702e2462693ca265b750d0641d62bd50 (diff)
downloadbrew-e747648c53267111691e38f1f53c8951f7baf1b0.tar.bz2
always prefer HOMEBREW_CURL over plain 'curl'
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/update.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh
index d6ce41b00..8ffd2eadb 100644
--- a/Library/Homebrew/cmd/update.sh
+++ b/Library/Homebrew/cmd/update.sh
@@ -304,7 +304,7 @@ EOS
UPSTREAM_BRANCH_LOCAL_SHA="$(git rev-parse "refs/remotes/origin/$UPSTREAM_BRANCH")"
# Only try to `git fetch` when the upstream branch is at a different SHA
# (so the API does not return 304: unmodified).
- UPSTREAM_SHA_HTTP_CODE="$(curl --silent '--max-time' 3 \
+ UPSTREAM_SHA_HTTP_CODE="$("$HOMEBREW_CURL" --silent '--max-time' 3 \
--output /dev/null --write-out "%{http_code}" \
--user-agent "$HOMEBREW_USER_AGENT_CURL" \
--header "Accept: application/vnd.github.chitauri-preview+sha" \