mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Merge remote-tracking branch 'mlafeldt/rbenv-rehash'
Conflicts: libexec/rbenv-rehash
This commit is contained in:
commit
b670849ebd
1 changed files with 3 additions and 4 deletions
|
@ -22,7 +22,7 @@ set +o noclobber
|
|||
|
||||
# If we were able to obtain a lock, register a trap to clean up the
|
||||
# prototype shim when the process exits.
|
||||
trap remove_prototype_shim SIGINT SIGTERM EXIT
|
||||
trap remove_prototype_shim EXIT
|
||||
|
||||
remove_prototype_shim() {
|
||||
rm -f "$PROTOTYPE_SHIM_PATH"
|
||||
|
@ -125,8 +125,7 @@ remove_stale_shims() {
|
|||
}
|
||||
|
||||
|
||||
# Save the working directory and change to the shims directory.
|
||||
CUR_PATH=$PWD
|
||||
# Change to the shims directory.
|
||||
cd "$SHIM_PATH"
|
||||
|
||||
# Create the prototype shim, then register shims for all known binaries.
|
||||
|
@ -135,7 +134,7 @@ shopt -s nullglob
|
|||
make_shims ../versions/*/bin/*
|
||||
|
||||
# Restore the previous working directory.
|
||||
cd "$CUR_PATH"
|
||||
cd "$OLDPWD"
|
||||
|
||||
# Allow plugins to register shims.
|
||||
for script in $(rbenv-hooks rehash); do
|
||||
|
|
Loading…
Reference in a new issue