typechecking, clearer env usage

Signed-off-by: William Woodruff <william@yossarian.net>
This commit is contained in:
William Woodruff 2024-04-08 16:27:18 -04:00
parent 1881a1f4bc
commit a99100bb6d
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

View File

@ -420,7 +420,7 @@ EOS
then
# we cannot install `gh` if homebrew/core is unavailable.
# we don't enable attestations on `gh` itself, to prevent a bootstrap cycle.
if [[ -z "${HOMEBREW_CORE_AVAILABLE}" ]] || ! HOMEBREW_VERIFY_ATTESTATIONS='' brew install gh
if [[ -z "${HOMEBREW_CORE_AVAILABLE}" ]] || ! env -u HOMEBREW_VERIFY_ATTESTATIONS brew install gh
then
odie "'gh' must be installed and in your PATH!"
fi

View File

@ -260,5 +260,8 @@ module Homebrew::EnvConfig
sig { returns(T::Boolean) }
def verbose_using_dots?; end
sig { returns(T::Boolean) }
def verify_attestations?; end
end
end