Parcourir la source

Merge pull request #907 from LarsFronius/patch-1

Fixes pip-rehash to rehash if pip was called with a flag
pull/909/head
Yamashita, Yuu il y a 7 ans
committed by GitHub
Parent
révision
d15f3888f0
1 fichiers modifiés avec 5 ajouts et 3 suppressions
  1. +5
    -3
      pyenv.d/exec/pip-rehash/pip

+ 5
- 3
pyenv.d/exec/pip-rehash/pip Voir le fichier

@ -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"

Chargement…
Annuler
Enregistrer