From 4bbb7cb04b196bc8b069ffd3bc5d5e2358630e49 Mon Sep 17 00:00:00 2001 From: zsbai Date: Wed, 24 Aug 2022 16:41:46 +0800 Subject: [PATCH] fix bug --- scripts/destVersionForMac.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/destVersionForMac.sh b/scripts/destVersionForMac.sh index b6743d6..58906d1 100644 --- a/scripts/destVersionForMac.sh +++ b/scripts/destVersionForMac.sh @@ -99,7 +99,7 @@ function main() { now_sum256=`shasum -a 256 ${temp_path}/WeChatMac.dmg | awk '{print $1}'` local latest_sum256=`gh release view --json body --jq ".body" | awk '/Sha256/{ print $2 }'` - local latest_sum256=`gh release view --json body --jq ".body" | awk '/DestVersion/{ print $2 }'` + local latest_version=`gh release view --json body --jq ".body" | awk '/DestVersion/{ print $2 }'` if [ "$now_sum256" = "$latest_sum256" ]; then >&2 echo -e "\n\033[1;32mThis is the newest Version!\033[0m\n"