From 3e0397ace7d71f894b206b7f1c24dd8759962d2c Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Wed, 1 Sep 2021 08:44:23 -0400 Subject: [PATCH] add version match check --- scripts/full-release.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/full-release.sh b/scripts/full-release.sh index eb5f76b..1b60fd5 100755 --- a/scripts/full-release.sh +++ b/scripts/full-release.sh @@ -64,6 +64,10 @@ cargo smart-release --update-crates-index "${params[@]}" BIN_PATH="target/release/steamguard-cli" RAW_VERSION="$("$BIN_PATH" --version | cut -d " " -f 2)" +TAGGED_VERSION="$(git tag | grep "^v" | tail -n 1 | tr -d v)" +if [[ "v$RAW_VERSION" != "v$TAGGED_VERSION" ]]; then + echo "Version mismatch: $RAW_VERSION != $TAGGED_VERSION" +fi VERSION="v$RAW_VERSION" if [[ $DRY_RUN == false ]]; then