mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
ignore error on checking virtualenv version
This commit is contained in:
parent
15608701ae
commit
aec759a0e0
|
|
@ -64,7 +64,7 @@ abs_dirname() {
|
|||
}
|
||||
|
||||
version() {
|
||||
local VIRTUALENV_VERSION="$(pyenv-exec python "${VIRTUALENV}" --version)"
|
||||
local VIRTUALENV_VERSION="$(pyenv-exec python "${VIRTUALENV}" --version || true)"
|
||||
echo "pyenv-virtualenv ${PYENV_VIRTUALENV_VERSION} (virtualenv ${VIRTUALENV_VERSION:-unknown})"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue