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:
@@ -9,7 +9,7 @@ setup() {
|
||||
|
||||
create_file() {
|
||||
mkdir -p "$(dirname "$1")"
|
||||
touch "$1"
|
||||
echo "system" > "$1"
|
||||
}
|
||||
|
||||
@test "detects global 'version' file" {
|
||||
|
||||
Reference in New Issue
Block a user