diff --git a/libexec/rbenv-version-file-read b/libexec/rbenv-version-file-read index 74f7acb1..bc79d13a 100755 --- a/libexec/rbenv-version-file-read +++ b/libexec/rbenv-version-file-read @@ -10,7 +10,7 @@ if [ -e "$VERSION_FILE" ]; then version="${words[0]}" if [ -n "$version" ]; then echo "$version" - break + exit fi done < <( cat "$VERSION_FILE" && echo ) fi