1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-14 06:13:53 -05:00

Rename rbenv-default to rbenv-global

This commit is contained in:
Sam Stephenson
2011-08-18 14:32:33 -05:00
parent 53d55eb08c
commit 5be66da9f4
9 changed files with 44 additions and 37 deletions

View File

@@ -1,8 +1,6 @@
#!/usr/bin/env bash
set -e
DEFAULT_PATH="${HOME}/.rbenv/default"
root="$(pwd)"
while [ -n "$root" ]; do
if [ -e "${root}/.rbenv-version" ]; then
@@ -12,4 +10,13 @@ while [ -n "$root" ]; do
root="${root%/*}"
done
echo "$DEFAULT_PATH"
GLOBAL_PATH="${HOME}/.rbenv/global"
DEFAULT_PATH="${HOME}/.rbenv/default"
if [ -e "$GLOBAL_PATH" ]; then
echo "$GLOBAL_PATH"
elif [ -e "$DEFAULT_PATH" ]; then
echo "$DEFAULT_PATH"
else
echo "$GLOBAL_PATH"
fi