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

libexec/rbenv-version{,-origin}: move "missing rbenv-version-file detection" logic as per @mislav

This commit is contained in:
Jeffrey 'jf' Lim
2020-01-16 23:15:09 +08:00
parent 40db754168
commit 302797ba41
2 changed files with 7 additions and 8 deletions

View File

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