diff --git a/libexec/pyenv-rehash b/libexec/pyenv-rehash index 2b2b8248..5c421c41 100755 --- a/libexec/pyenv-rehash +++ b/libexec/pyenv-rehash @@ -40,7 +40,7 @@ if [ ! -w "$SHIM_PATH" ]; then fi unset acquired -for _ in $(seq "${PYENV_REHASH_TIMEOUT:-60}"); do +for (( i=1; i<="${PYENV_REHASH_TIMEOUT:-60}"; i++ )); do if acquire_lock 2>/dev/null; then acquired=1 break