mirror of
https://github.com/pyenv/pyenv.git
synced 2025-01-09 00:51:32 +00:00
16 lines
326 B
Bash
Executable file
16 lines
326 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ -z "$1" ]; then
|
|
echo "Please specify one of the following Ruby versions to use:" >&2
|
|
echo "" >&2
|
|
echo "$(rbenv-versions)" >&2
|
|
exit 1
|
|
fi
|
|
|
|
version=$1
|
|
|
|
if [ -d "$HOME/.rbenv/versions/$version" ]; then
|
|
echo "export RBENV_VERSION=$version"
|
|
else
|
|
echo "rbenv: version \`$version' is not installed" >&2
|
|
fi
|