Unset HOMEBREW_RUBY3 after updates

This commit is contained in:
Bo Anderson 2023-12-01 13:37:07 +00:00
parent d68e3e563e
commit e19c3e1f13
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65
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
brew update-report "$@"
(
unset HOMEBREW_RUBY3
brew update-report "$@"
)
return $?
elif [[ -z "${HOMEBREW_UPDATE_AUTO}" && -z "${HOMEBREW_QUIET}" ]]
then