mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-11 04:53:47 -05:00
Remove support for legacy global version files
`default` was made legacy back in 2011 with
5be66da9f4 (the command was renamed from
`rbenv-default` to `rbenv-global`, and so the global file was renamed
from `$RBENV_ROOT/default` to `$RBENV_ROOT/global` (the latter taking
precedence)
`global` was then made legacy about a month later in Sep 2011 when the
preferred filename was changed to `$RBENV_ROOT/version`.
This commit is contained in:
@@ -25,15 +25,7 @@ find_local_version_file() {
|
||||
find_global_version_file() {
|
||||
local global_version_file="${RBENV_ROOT}/version"
|
||||
|
||||
if [ -e "$global_version_file" ]; then
|
||||
echo "$global_version_file"
|
||||
elif [ -e "${RBENV_ROOT}/global" ]; then
|
||||
echo "${RBENV_ROOT}/global"
|
||||
elif [ -e "${RBENV_ROOT}/default" ]; then
|
||||
echo "${RBENV_ROOT}/default"
|
||||
else
|
||||
echo "$global_version_file"
|
||||
fi
|
||||
echo "$global_version_file"
|
||||
}
|
||||
|
||||
if [ -n "$target_dir" ]; then
|
||||
|
||||
Reference in New Issue
Block a user