From b57bdef58482c97bf10ce588546899085ecae67d Mon Sep 17 00:00:00 2001 From: rockandska Date: Thu, 4 Sep 2025 17:56:53 +0200 Subject: [PATCH] Fix rehash hook for pipx/pipx.x/pipx.xx (#3320) --- pyenv.d/exec/pip-rehash.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyenv.d/exec/pip-rehash.bash b/pyenv.d/exec/pip-rehash.bash index 7080f45d..f608f4ac 100644 --- a/pyenv.d/exec/pip-rehash.bash +++ b/pyenv.d/exec/pip-rehash.bash @@ -1,8 +1,8 @@ PYENV_PIP_REHASH_ROOT="${BASH_SOURCE[0]%/*}/pip-rehash" PYENV_REHASH_COMMAND="${PYENV_COMMAND##*/}" -# Remove any version information, from e.g. "pip2" or "pip3.4". -if [[ $PYENV_REHASH_COMMAND =~ ^(pip|easy_install)[23](\.\d)?$ ]]; then +# Remove any version information, from e.g. "pip2" or "pip3.10". +if [[ $PYENV_REHASH_COMMAND =~ ^(pip|easy_install)[23](\.[0-9]+)?$ ]]; then PYENV_REHASH_COMMAND="${BASH_REMATCH[1]}" fi