From 810db7865a7576c29168b234d37722f042a0cfe3 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Fri, 16 Sep 2022 02:35:05 +0300 Subject: [PATCH] Do a rehash after update Since shims and/or their necessary set might've changed Closes https://github.com/pyenv/pyenv-update/issues/15 --- bin/pyenv-update | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/pyenv-update b/bin/pyenv-update index ddcde6c..978f77c 100755 --- a/bin/pyenv-update +++ b/bin/pyenv-update @@ -87,4 +87,6 @@ for repo in "${PYENV_ROOT}" "${PYENV_ROOT}/plugins/"*; do done shopt -u nullglob +pyenv rehash || STATUS="$?" + exit "$STATUS"