Ver a proveniência
Merge pull request #1003 from blueyed/version-file-skip-dirs
rbenv-version-file: ensure that the version file is a file
pull/1133/head
Mislav Marohnić
há 8 anos
committed by
GitHub
ascendente
cometimento
33a5c2495d
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados
ID da chave GPG: 4AEE18F83AFDEB23
1 ficheiros alterados com
1 adições e
1 eliminações
-
libexec/rbenv-version-file
|
|
|
@ -9,7 +9,7 @@ target_dir="$1" |
|
|
|
find_local_version_file() { |
|
|
|
local root="$1" |
|
|
|
while ! [[ "$root" =~ ^//[^/]*$ ]]; do |
|
|
|
if [ -e "${root}/.ruby-version" ]; then |
|
|
|
if [ -f "${root}/.ruby-version" ]; then |
|
|
|
echo "${root}/.ruby-version" |
|
|
|
return 0 |
|
|
|
fi |
|
|
|
|