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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user