From 837bfc5aa9d9e5b701c23c0d89229397f7ea8bac Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Wed, 7 Sep 2011 14:46:29 -0500 Subject: [PATCH] Fix rbenv-version-file-read for version files without trailing newlines --- 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 5bd293de..a7b02c0d 100755 --- a/libexec/rbenv-version-file-read +++ b/libexec/rbenv-version-file-read @@ -12,7 +12,7 @@ if [ -e "$VERSION_FILE" ]; then echo "$version" break fi - done < "$VERSION_FILE" + done < <( cat "$VERSION_FILE" && echo ) else exit 1 fi