Просмотр исходного кода

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ć 8 лет назад
committed by GitHub
Родитель
Сommit
33a5c2495d
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 4AEE18F83AFDEB23
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      libexec/rbenv-version-file

+ 1
- 1
libexec/rbenv-version-file Просмотреть файл

@ -9,7 +9,7 @@ target_dir="$1"
find_local_version_file() { find_local_version_file() {
local root="$1" local root="$1"
while ! [[ "$root" =~ ^//[^/]*$ ]]; do while ! [[ "$root" =~ ^//[^/]*$ ]]; do
if [ -e "${root}/.ruby-version" ]; then
if [ -f "${root}/.ruby-version" ]; then
echo "${root}/.ruby-version" echo "${root}/.ruby-version"
return 0 return 0
fi fi

Загрузка…
Отмена
Сохранить