From c063734731d6cd7ae0e67ecad6d23ca69534f2d4 Mon Sep 17 00:00:00 2001 From: name Date: Sat, 5 Feb 2022 14:54:21 +0800 Subject: [PATCH] fix bugs --- scripts/notify.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/notify.sh b/scripts/notify.sh index a740449..93de31b 100755 --- a/scripts/notify.sh +++ b/scripts/notify.sh @@ -59,10 +59,11 @@ function clean_data() { } function main() { - login_gh - temp_path="WeChatSetup/temp" mkdir -p ${temp_path} + + login_gh + gh release view --json body --jq ".body" > ${temp_path}/release.info release_info=`awk '!/^$|Sha256/ { $1="*"$1"*";sub("UpdateTime", "CheckTime"); if ( match($2, /https?:\/\/([\w\.\/:])*/) ) $2="[Url]("$2")"; print $0 }' ${temp_path}/release.info | join_lines '%0A' | sed 's/ /%20/g'`