From 5a3f3bd96fad5a3f3db341bfe932bca939fec920 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 14 May 2024 18:25:07 +0200 Subject: [PATCH] fix version extraction --- build/pack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/pack.sh b/build/pack.sh index 6b8a6c6..872298d 100755 --- a/build/pack.sh +++ b/build/pack.sh @@ -29,7 +29,7 @@ if [ "$1" == "-b" ]; then cargo build --release --target=x86_64-pc-windows-gnu --no-default-features --features release_windows fi -VERSION="$(sed -nr 's/^\s*version\s*=\s*"(.*)"\s*$/\1/p' Cargo.toml)" +VERSION="$(sed -nr 's/^\s*version\s*=\s*"(.*)"\s*$/\1/p' Cargo.toml | head -n1)" test -z "$VERSION" && echo 'Error: Could not extract version from Cargo.toml' && exit echo "Extracted version from Cargo.toml: $VERSION"