ソースを参照

`rbenv-version-name` returns `system` for empty version files. Closes #62, #65, #77.

pull/360/head^2
Sam Stephenson 15年前
コミット
db2a94d4bc
2個のファイルの変更4行の追加4行の削除
  1. +2
    -2
      libexec/rbenv-version-file-read
  2. +2
    -2
      libexec/rbenv-version-name

+ 2
- 2
libexec/rbenv-version-file-read ファイルの表示

@ -13,6 +13,6 @@ if [ -e "$VERSION_FILE" ]; then
break
fi
done < <( cat "$VERSION_FILE" && echo )
else
exit 1
fi
exit 1

+ 2
- 2
libexec/rbenv-version-name ファイルの表示

@ -6,8 +6,8 @@ if [ -z "$RBENV_VERSION" ]; then
RBENV_VERSION="$(rbenv-version-file-read "$RBENV_VERSION_FILE" || true)"
fi
if [ "$RBENV_VERSION" = "system" ]; then
echo "$RBENV_VERSION"
if [ -z "$RBENV_VERSION" ] || [ "$RBENV_VERSION" = "system" ]; then
echo "system"
exit
fi

読み込み中…
キャンセル
保存