Merge pull request #10420 from vszakats/patch-1

cmd/update: suppress curl warnings in certain envs
This commit is contained in:
Mike McQuaid 2021-01-26 10:21:23 +00:00 committed by GitHub
commit 703e34f85c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -541,7 +541,7 @@ EOS
UPSTREAM_SHA_HTTP_CODE="$("$HOMEBREW_CURL" \
"${CURL_DISABLE_CURLRC_ARGS[@]}" \
--silent --max-time 3 \
--location --output /dev/null --write-out "%{http_code}" \
--location --no-remote-time --output /dev/null --write-out "%{http_code}" \
--dump-header "$DIR/.git/GITHUB_HEADERS" \
--user-agent "$HOMEBREW_USER_AGENT_CURL" \
--header "Accept: $GITHUB_API_ACCEPT" \