mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-08 11:33:49 -05:00
Fix rehash hook for pipx/pipx.x/pipx.xx (#3320)
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
PYENV_PIP_REHASH_ROOT="${BASH_SOURCE[0]%/*}/pip-rehash"
|
PYENV_PIP_REHASH_ROOT="${BASH_SOURCE[0]%/*}/pip-rehash"
|
||||||
PYENV_REHASH_COMMAND="${PYENV_COMMAND##*/}"
|
PYENV_REHASH_COMMAND="${PYENV_COMMAND##*/}"
|
||||||
|
|
||||||
# Remove any version information, from e.g. "pip2" or "pip3.4".
|
# Remove any version information, from e.g. "pip2" or "pip3.10".
|
||||||
if [[ $PYENV_REHASH_COMMAND =~ ^(pip|easy_install)[23](\.\d)?$ ]]; then
|
if [[ $PYENV_REHASH_COMMAND =~ ^(pip|easy_install)[23](\.[0-9]+)?$ ]]; then
|
||||||
PYENV_REHASH_COMMAND="${BASH_REMATCH[1]}"
|
PYENV_REHASH_COMMAND="${BASH_REMATCH[1]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user