fix: take $HOMEBREW_DOCKER_REGISTRY_BASIC_AUTH_TOKEN into account when installing portable ruby
This commit is contained in:
parent
05b5a2c499
commit
ad65d47bee
@ -119,9 +119,18 @@ fetch() {
|
|||||||
--remote-time
|
--remote-time
|
||||||
--location
|
--location
|
||||||
--user-agent "${HOMEBREW_USER_AGENT_CURL}"
|
--user-agent "${HOMEBREW_USER_AGENT_CURL}"
|
||||||
--header "Authorization: Bearer ${HOMEBREW_DOCKER_REGISTRY_TOKEN:-QQ==}"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if [[ -n "${HOMEBREW_DOCKER_REGISTRY_TOKEN}" ]]
|
||||||
|
then
|
||||||
|
curl_args[${#curl_args[*]}]="--header \"Authorization: Bearer ${HOMEBREW_DOCKER_REGISTRY_TOKEN}\""
|
||||||
|
elif [[ -n "${HOMEBREW_DOCKER_REGISTRY_BASIC_AUTH_TOKEN}" ]]
|
||||||
|
then
|
||||||
|
curl_args[${#curl_args[*]}]="--header \"Authorization: Basic ${HOMEBREW_DOCKER_REGISTRY_BASIC_AUTH_TOKEN}\""
|
||||||
|
else
|
||||||
|
curl_args[${#curl_args[*]}]="--header \"Authorization: Bearer QQ==\""
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -n "${HOMEBREW_QUIET}" ]]
|
if [[ -n "${HOMEBREW_QUIET}" ]]
|
||||||
then
|
then
|
||||||
curl_args[${#curl_args[*]}]="--silent"
|
curl_args[${#curl_args[*]}]="--silent"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user