Merge pull request #16277 from Bo98/ruby3-env-unset

Unset HOMEBREW_RUBY3 after updates
This commit is contained in:
Mike McQuaid 2023-12-01 13:59:31 +00:00 committed by GitHub
commit 1130070796
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -358,6 +358,8 @@ auto-update() {
# Restore user path as it'll be refiltered by HOMEBREW_BREW_FILE (bin/brew)
export PATH=${HOMEBREW_PATH}
unset HOMEBREW_RUBY3
# exec a new process to set any new environment variables.
exec "${HOMEBREW_BREW_FILE}" "$@"
fi

View File

@ -893,7 +893,10 @@ EOS
[[ ! -f "${HOMEBREW_CACHE}/all_commands_list.txt" ]] ||
[[ -n "${HOMEBREW_DEVELOPER}" && -z "${HOMEBREW_UPDATE_AUTO}" ]]
then
(
unset HOMEBREW_RUBY3
brew update-report "$@"
)
return $?
elif [[ -z "${HOMEBREW_UPDATE_AUTO}" && -z "${HOMEBREW_QUIET}" ]]
then