Merge pull request #14333 from asutoshpalai/arm-rbenv-fix
Restoring the original `PATH` after update
This commit is contained in:
commit
ea0b786388
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user