diff --git a/build_release_unix.sh b/build_release_unix.sh index bab6dcc..e986dc0 100644 --- a/build_release_unix.sh +++ b/build_release_unix.sh @@ -7,7 +7,7 @@ cp -r web src Cargo.toml Cargo.lock res/unix/Makefile release/tmp cp res/default_config.toml release/tmp/polaris.toml echo "Creating tarball" -POLARIS_VERSION=$(grep ^version Cargo.toml | awk '{print $3}' | tr -d '"\r\n') +POLARIS_VERSION=$(grep -m 1 ^version Cargo.toml | awk '{print $3}' | tr -d '"\r\n') tar -zc -C release/tmp -f release/polaris-$POLARIS_VERSION.tar.gz . echo "Cleaning up"