Merge pull request #15900 from clint-stripe/clint/homebrew-curlrc-vendor-install

Use HOMEBREW_CURLRC in vendor-install
This commit is contained in:
Mike McQuaid 2023-08-23 08:37:52 +01:00 committed by GitHub
commit 3c8b4949ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,6 +111,9 @@ fetch() {
if [[ -z "${HOMEBREW_CURLRC}" ]] if [[ -z "${HOMEBREW_CURLRC}" ]]
then then
curl_args[${#curl_args[*]}]="-q" curl_args[${#curl_args[*]}]="-q"
elif [[ "${HOMEBREW_CURLRC}" == /* ]]
then
curl_args+=("-q" "--config" "${HOMEBREW_CURLRC}")
fi fi
# Authorization is needed for GitHub Packages but harmless on GitHub Releases # Authorization is needed for GitHub Packages but harmless on GitHub Releases