本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
isprogram
/
pyenv
镜像来自
https://github.com/pyenv/pyenv.git
關注
1
收藏
0
複製
0
程式碼
問題
0
Projects
0
版本發佈
181
Wiki
活動
瀏覽代碼
Merge pull request
#1069
from viclim/fix-issue-1065
Ignore empty `.ruby-version` files
pull/1133/head
Mislav Marohnić
6 年之前
committed by
GitHub
父節點
b943955dbf
9daf81f16e
當前提交
c8ba27fd07
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID:
4AEE18F83AFDEB23
共有
3 個檔案被更改
,包括
3 行新增
和
3 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libexec/rbenv-version-file
+1
-1
test/version-file.bats
+1
-1
test/version-origin.bats
+ 1
- 1
libexec/rbenv-version-file
查看文件
@ -9,7 +9,7 @@ target_dir="$1"
find_local_version_file() {
local root="$1"
while ! [[ "$root" =~ ^//[^/]*$ ]]; do
if [ -
f
"${root}/.ruby-version" ]; then
if [ -
s
"${root}/.ruby-version" ]; then
echo "${root}/.ruby-version"
return 0
fi
+ 1
- 1
test/version-file.bats
查看文件
@ -9,7 +9,7 @@ setup() {
create_file() {
mkdir -p "$(dirname "$1")"
touch
"$1"
echo "system" >
"$1"
}
@test "detects global 'version' file" {
+ 1
- 1
test/version-origin.bats
查看文件
@ -26,7 +26,7 @@ setup() {
}
@test "detects local file" {
touch
.ruby-version
echo "system" >
.ruby-version
run rbenv-version-origin
assert_success "${PWD}/.ruby-version"
}
Write
Preview
Loading…
取消
儲存