mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-23 00:20:47 +00:00
15 lines
244 B
Bash
Executable file
15 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"
|