mirror of
https://github.com/rbenv/rbenv.git
synced 2024-12-29 13:15:42 +01:00
Fix rbenv-version-file-read for version files without trailing newlines
This commit is contained in:
parent
042794b651
commit
837bfc5aa9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue