This website works better with JavaScript.
Home
Explore
Help
Sign In
isprogram
/
pyenv
mirror of
https://github.com/pyenv/pyenv.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
181
Wiki
Activity
Browse Source
Merge pull request
#1069
from viclim/fix-issue-1065
Ignore empty `.ruby-version` files
pull/1133/head
Mislav Marohnić
6 years ago
committed by
GitHub
parent
b943955dbf
9daf81f16e
commit
c8ba27fd07
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
3 changed files
with
3 additions
and
3 deletions
Split View
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
View 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
View File
@ -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
View File
@ -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…
Cancel
Save