mirror of
https://github.com/rbenv/rbenv.git
synced 2025-01-01 14:45:03 +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"
|
echo "$version"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done < "$VERSION_FILE"
|
done < <( cat "$VERSION_FILE" && echo )
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue