1
0
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:
Yamashita Yuu
2012-08-31 19:39:29 +09:00
parent 2856f81bb9
commit dff57ae35d
8 changed files with 44 additions and 44 deletions

View File

@@ -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