mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-22 17:23:37 +00:00
Merge pull request #907 from LarsFronius/patch-1
Fixes pip-rehash to rehash if pip was called with a flag
This commit is contained in:
commit
d15f3888f0
1 changed files with 5 additions and 3 deletions
|
@ -21,9 +21,11 @@ STATUS=0
|
|||
|
||||
# Run `pyenv-rehash` after a successful installation.
|
||||
if [ "$STATUS" == "0" ]; then
|
||||
case "$1" in
|
||||
"install" | "uninstall" ) pyenv-rehash;;
|
||||
esac
|
||||
for piparg in "$@"; do
|
||||
case ${piparg} in
|
||||
"install" | "uninstall" ) pyenv-rehash ; break;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
|
||||
exit "$STATUS"
|
||||
|
|
Loading…
Reference in a new issue