From e5c0fd22e1c56a1d63cc8802b731fb4dc25e11ce Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Sun, 11 Sep 2011 10:16:08 -0500 Subject: [PATCH] Exit with 0 status when a version file is read successfully --- libexec/rbenv-version-file-read | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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