mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Avoid globals
This commit is contained in:
parent
fb31290b9d
commit
8246dc8d8a
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ read_version_file() {
|
|||
}
|
||||
|
||||
find_version_file() {
|
||||
root="$(pwd)"
|
||||
local root="$(pwd)"
|
||||
while [ -n "$root" ]; do
|
||||
if [ -e "${root}/.rbenv-version" ]; then
|
||||
echo "${root}/.rbenv-version"
|
||||
|
@ -19,7 +19,7 @@ find_version_file() {
|
|||
}
|
||||
|
||||
find_default_version_file() {
|
||||
default_path="$HOME/.rbenv/default"
|
||||
local default_path="$HOME/.rbenv/default"
|
||||
if [ -e "$default_path" ]; then
|
||||
echo "$default_path"
|
||||
return 0
|
||||
|
|
Loading…
Reference in a new issue