fix libexec/pyenv-exec

Make sure the $LD_LIBRARY_PATH does not have a trailing colon.

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Michał 2026-09-07 19:25:58 +02:00 committed by GitHub
parent a4f80ce23f
commit 63548e129f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,6 +65,6 @@ if [ "${PYENV_BIN_PATH#${PYENV_ROOT}}" != "${PYENV_BIN_PATH}" ]; then
fi
if [ -n "$MODIFY_ENV" ]; then
export PYTHONHOME="$(pyenv-prefix)"
export LD_LIBRARY_PATH="${PYTHONHOME}/lib:${LD_LIBRARY_PATH}"
export LD_LIBRARY_PATH="${PYTHONHOME}/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
fi
exec "$PYENV_COMMAND_PATH" "$@"