1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-16 23:33:45 -05:00

libexec/rbenv-version{,-origin}: fix earlier commit to allow for RBENV_VERSION env var

This commit is contained in:
Jeffrey 'jf' Lim
2020-01-08 16:40:48 +08:00
parent dd86f543fc
commit 5c3268c9af
2 changed files with 8 additions and 5 deletions

View File

@@ -17,5 +17,8 @@ if [ -n "$RBENV_VERSION_ORIGIN" ]; then
elif [ -n "$RBENV_VERSION" ]; then
echo "RBENV_VERSION environment variable"
else
rbenv-version-file
RBENV_VERSION_FILE="$(rbenv-version-file)"
if [ -e "$RBENV_VERSION_FILE" ]; then
echo $RBENV_VERSION_FILE
fi
fi