Fixed line endings and improved script to work with Windows endings just in case
Some checks failed
CI / Test (Linux) (push) Has been cancelled
CI / Test (Windows MSVC) (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Format (push) Has been cancelled

This commit is contained in:
Eric Ratliff
2026-02-22 10:03:39 -06:00
parent 6a372e2982
commit 578b5f02c0
2 changed files with 3 additions and 3 deletions

2
.gitattributes vendored
View File

@@ -3,7 +3,7 @@
# Rust source
*.rs text diff=rust
*.toml text
*.toml text eol=lf
# Shell scripts must keep LF even on Windows
*.sh text eol=lf

View File

@@ -12,7 +12,7 @@
set -e
# Read version from the single source of truth: Cargo.toml
BASE_VERSION=$(grep '^version' Cargo.toml | head -1 | sed 's/version = "\(.*\)"/\1/')
BASE_VERSION=$(grep '^version' Cargo.toml | head -1 | sed 's/version = "\(.*\)"/\1/' | tr -d '\r')
if [ -z "$BASE_VERSION" ]; then
echo "Error: Could not read version from Cargo.toml"
exit 1