浏览代码

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 年前
提交者 GitHub
父节点
当前提交
33a5c2495d
找不到此签名对应的密钥 GPG 密钥 ID: 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() {
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

正在加载...
取消
保存