Fix rbenv-version-file-read for version files without trailing newlines

This commit is contained in:
Sam Stephenson 2011-09-07 14:46:29 -05:00
parent 042794b651
commit 837bfc5aa9

View file

@ -12,7 +12,7 @@ if [ -e "$VERSION_FILE" ]; then
echo "$version" echo "$version"
break break
fi fi
done < "$VERSION_FILE" done < <( cat "$VERSION_FILE" && echo )
else else
exit 1 exit 1
fi fi