fix: add automatic rehash after pip3.x/pip3.xx install
The tests showed that the original implementation actually never worked. You did NOT get a rehash after doing pip3.8 install, even when the comments in the code said so. --> replaced `\d` with [0-9] and slapped on a `+`, such that we match both pip3.x and `pip3.xx install`
This commit is contained in:
parent
2cc568c161
commit
6112062fdd
@ -2,7 +2,7 @@ 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.4".
|
||||||
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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user