1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-15 06:43:53 -05:00
Command `rbenv version-name > .ruby-version` will create an empty `.ruby-version` file
before running `rbenv-version-file`. This causes `rbenv-version-file` to return empty
string which in turn causes `rbenv-version-name` to return `system`.

Ensure size of `.ruby-version` is non-zero as a workaround.
This commit is contained in:
Victor Lim
2018-02-26 16:32:43 +08:00
parent b943955dbf
commit 9daf81f16e
3 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ setup() {
create_file() {
mkdir -p "$(dirname "$1")"
touch "$1"
echo "system" > "$1"
}
@test "detects global 'version' file" {