Unset HOMEBREW_RUBY3 after updates
This commit is contained in:
parent
d68e3e563e
commit
e19c3e1f13
@ -358,6 +358,8 @@ auto-update() {
|
|||||||
# Restore user path as it'll be refiltered by HOMEBREW_BREW_FILE (bin/brew)
|
# Restore user path as it'll be refiltered by HOMEBREW_BREW_FILE (bin/brew)
|
||||||
export PATH=${HOMEBREW_PATH}
|
export PATH=${HOMEBREW_PATH}
|
||||||
|
|
||||||
|
unset HOMEBREW_RUBY3
|
||||||
|
|
||||||
# exec a new process to set any new environment variables.
|
# exec a new process to set any new environment variables.
|
||||||
exec "${HOMEBREW_BREW_FILE}" "$@"
|
exec "${HOMEBREW_BREW_FILE}" "$@"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -893,7 +893,10 @@ EOS
|
|||||||
[[ ! -f "${HOMEBREW_CACHE}/all_commands_list.txt" ]] ||
|
[[ ! -f "${HOMEBREW_CACHE}/all_commands_list.txt" ]] ||
|
||||||
[[ -n "${HOMEBREW_DEVELOPER}" && -z "${HOMEBREW_UPDATE_AUTO}" ]]
|
[[ -n "${HOMEBREW_DEVELOPER}" && -z "${HOMEBREW_UPDATE_AUTO}" ]]
|
||||||
then
|
then
|
||||||
|
(
|
||||||
|
unset HOMEBREW_RUBY3
|
||||||
brew update-report "$@"
|
brew update-report "$@"
|
||||||
|
)
|
||||||
return $?
|
return $?
|
||||||
elif [[ -z "${HOMEBREW_UPDATE_AUTO}" && -z "${HOMEBREW_QUIET}" ]]
|
elif [[ -z "${HOMEBREW_UPDATE_AUTO}" && -z "${HOMEBREW_QUIET}" ]]
|
||||||
then
|
then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user