mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-12 21:33:54 -05:00
fix "system" handling
This commit is contained in:
@@ -11,15 +11,15 @@ else
|
||||
export PYENV_VERSION
|
||||
fi
|
||||
|
||||
if [ -z "$versions" ] || [ "$versions" = "system" ] ; then
|
||||
if [ -z "$versions" ]; then
|
||||
echo "system"
|
||||
exit
|
||||
fi
|
||||
|
||||
for version in "${versions[@]}"; do
|
||||
PYENV_VERSION_PATH="${PYENV_ROOT}/versions/${version}"
|
||||
|
||||
if [ ! -d "$PYENV_VERSION_PATH" ]; then
|
||||
|
||||
if [ "$version" != "system" ] && [ ! -d "$PYENV_VERSION_PATH" ]; then
|
||||
echo "pyenv: version \`$version' is not installed" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user