1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-13 22:03:52 -05:00
Files
pyenv/libexec/rbenv-version-file
2011-08-18 14:11:40 -05:00

16 lines
244 B
Bash
Executable File

#!/usr/bin/env bash
set -e
DEFAULT_PATH="${HOME}/.rbenv/default"
root="$(pwd)"
while [ -n "$root" ]; do
if [ -e "${root}/.rbenv-version" ]; then
echo "${root}/.rbenv-version"
exit
fi
root="${root%/*}"
done
echo "$DEFAULT_PATH"