mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-15 23:03:53 -05:00
s/PYENV_VERSIONS/PYENV_VERSION/ for backward compatibility.
This commit is contained in:
@@ -8,19 +8,19 @@ if [ "$1" = "--complete" ]; then
|
||||
exec pyenv-versions --bare
|
||||
fi
|
||||
|
||||
PYENV_VERSIONS=($@)
|
||||
PYENV_VERSION=($@)
|
||||
PYENV_VERSION_FILE="${PYENV_ROOT}/version"
|
||||
|
||||
if [ -n "$PYENV_VERSIONS" ]; then
|
||||
pyenv-version-file-write "$PYENV_VERSION_FILE" "${PYENV_VERSIONS[@]}"
|
||||
if [ -n "$PYENV_VERSION" ]; then
|
||||
pyenv-version-file-write "$PYENV_VERSION_FILE" "${PYENV_VERSION[@]}"
|
||||
else
|
||||
IFS=: PYENV_VERSIONS=($(
|
||||
IFS=: PYENV_VERSION=($(
|
||||
pyenv-version-file-read "$PYENV_VERSION_FILE" ||
|
||||
pyenv-version-file-read "${PYENV_ROOT}/global" ||
|
||||
pyenv-version-file-read "${PYENV_ROOT}/default" ||
|
||||
echo system
|
||||
))
|
||||
for PYENV_VERSION in "${PYENV_VERSIONS[@]}"; do
|
||||
echo "$PYENV_VERSION"
|
||||
for version in "${PYENV_VERSION[@]}"; do
|
||||
echo "$version"
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user