Merge pull request #14333 from asutoshpalai/arm-rbenv-fix

Restoring the original `PATH` after update
This commit is contained in:
Mike McQuaid 2023-01-05 12:16:21 +00:00 committed by GitHub
commit ea0b786388
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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