mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-16 23:33:45 -05:00
fix 'system' python to be present if 'python3' is on path but not 'python'
This commit is contained in:
@@ -102,7 +102,7 @@ print_version() {
|
||||
}
|
||||
|
||||
# Include "system" in the non-bare output, if it exists
|
||||
if [ -n "$include_system" ] && PYENV_VERSION=system pyenv-which python >/dev/null 2>&1; then
|
||||
if [ -n "$include_system" ] && (PYENV_VERSION=system pyenv-which python >/dev/null 2>&1 || PYENV_VERSION=system pyenv-which python3 >/dev/null 2>&1); then
|
||||
print_version system
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user