read version correctly in release script

This commit is contained in:
Kaan Barmore-Genç 2022-11-13 16:49:03 -05:00
parent 7cffca51af
commit 35d60f0b29
Signed by: kaan
GPG key ID: B2E280771CD62FCF

View file

@ -44,7 +44,7 @@ declare -A DOCKER_TARGETS=(
) )
# Get the version number # Get the version number
VERSION=$(sed -nr 's/^version *= *"([0-9.]+)"/\1/p' Cargo.toml) VERSION=$(sed -nr 's/^version *= *"([0-9.]+)"/\1/p' Cargo.toml | head --lines=1)
# Make the builds # Make the builds
for target in "${!TARGETS[@]}"; do for target in "${!TARGETS[@]}"; do
@ -62,7 +62,6 @@ if [[ "$#" -ge 2 && "$1" = "--no-docker" ]] ; then
exit 0 exit 0
fi fi
# Copy files into place so Docker can get them easily # Copy files into place so Docker can get them easily
cd Docker cd Docker
echo Building Docker images echo Building Docker images