mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-15 23:03:53 -05:00
import trivial changes from rbenv 0.4.0
This commit is contained in:
@@ -17,10 +17,15 @@ if [ -z "$versions" ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
version_exists() {
|
||||
local version="$1"
|
||||
[ -d "${RBENV_ROOT}/versions/${version}" ]
|
||||
}
|
||||
|
||||
for version in "${versions[@]}"; do
|
||||
PYENV_VERSION_PATH="${PYENV_ROOT}/versions/${version}"
|
||||
|
||||
if [ "$version" != "system" ] && [ ! -d "$PYENV_VERSION_PATH" ]; then
|
||||
|
||||
if [ "$version" != "system" ] && version_exists "$version"; then
|
||||
echo "pyenv: version \`$version' is not installed" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user