mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-15 06:43:53 -05: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:
@@ -21,9 +21,11 @@ STATUS=0
|
|||||||
|
|
||||||
# Run `pyenv-rehash` after a successful installation.
|
# Run `pyenv-rehash` after a successful installation.
|
||||||
if [ "$STATUS" == "0" ]; then
|
if [ "$STATUS" == "0" ]; then
|
||||||
case "$1" in
|
for piparg in "$@"; do
|
||||||
"install" | "uninstall" ) pyenv-rehash;;
|
case ${piparg} in
|
||||||
|
"install" | "uninstall" ) pyenv-rehash ; break;;
|
||||||
esac
|
esac
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit "$STATUS"
|
exit "$STATUS"
|
||||||
|
|||||||
Reference in New Issue
Block a user