1
0
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:
Yamashita Yuu
2012-12-19 23:58:39 +09:00
parent a16355fe33
commit 5b14236bac
3 changed files with 13 additions and 14 deletions

View File

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