Fixed line endings and improved script to work with Windows endings just in case
This commit is contained in:
2
.gitattributes
vendored
2
.gitattributes
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user