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

@@ -15,17 +15,17 @@ for version in "$@"; do
done
if [ -z "$versions" ]; then
if [ -z "$PYENV_VERSIONS" ]; then
if [ -z "$PYENV_VERSION" ]; then
echo "pyenv: no shell-specific version configured" >&2
exit 1
else
echo "echo \"\$PYENV_VERSIONS\""
echo "echo \"\${PYENV_VERSION[@]}\""
exit
fi
fi
if [ "$versions" = "--unset" ]; then
echo "unset PYENV_VERSIONS"
echo "unset PYENV_VERSION"
exit 1
fi
@@ -34,5 +34,5 @@ pyenv-prefix $versions >/dev/null
{
IFS=:
echo "export PYENV_VERSIONS=\"${versions[*]}\""
echo "export PYENV_VERSION=(\"${versions[@]}\")"
}