Revised conditional logic to match CONTRIBUTING.md recommendations on adhering to brew style findings.
This commit is contained in:
parent
d73b0079e9
commit
3761d70785
@ -706,7 +706,9 @@ class CurlGitHubPackagesDownloadStrategy < CurlDownloadStrategy
|
|||||||
# GitHub Packages authorization header.
|
# GitHub Packages authorization header.
|
||||||
# HOMEBREW_GITHUB_PACKAGES_AUTH set in brew.sh
|
# HOMEBREW_GITHUB_PACKAGES_AUTH set in brew.sh
|
||||||
# If using a private GHCR mirror with no Authentication set than do not add the header. In all other cases add it.
|
# If using a private GHCR mirror with no Authentication set than do not add the header. In all other cases add it.
|
||||||
if not (Homebrew::EnvConfig.artifact_domain.presence && !Homebrew::EnvConfig.docker_registry_basic_auth_token.presence && !Homebrew::EnvConfig.docker_registry_token.presence)
|
if !Homebrew::EnvConfig.artifact_domain.presence ||
|
||||||
|
Homebrew::EnvConfig.docker_registry_basic_auth_token.presence ||
|
||||||
|
Homebrew::EnvConfig.docker_registry_token.presence
|
||||||
meta[:headers] << "Authorization: #{HOMEBREW_GITHUB_PACKAGES_AUTH}"
|
meta[:headers] << "Authorization: #{HOMEBREW_GITHUB_PACKAGES_AUTH}"
|
||||||
end
|
end
|
||||||
super
|
super
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user