From c87fd090db31288ea24eced1ffb35517d93f54b6 Mon Sep 17 00:00:00 2001 From: name Date: Sat, 5 Feb 2022 15:36:36 +0800 Subject: [PATCH] update readme --- README.md | 3 ++- scripts/notify.sh | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e5b5016..477c6b9 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,8 @@ ├── WeChatSetup # 微信安装包临时目录 │ └── temp # 临时目录 └── scripts # 脚本目录 - └── destVersionRelease.sh # 获取安装包及取得版本号与 hash 值的脚本 + ├── destVersionRelease.sh # 获取安装包及取得版本号与 hash 值的脚本 + └── notify.sh # 新release 时调用通知的脚本 ``` ## 说明 diff --git a/scripts/notify.sh b/scripts/notify.sh index d410953..ec4bf59 100755 --- a/scripts/notify.sh +++ b/scripts/notify.sh @@ -4,17 +4,17 @@ set -eo pipefail if [ -z $GHTOKEN ]; then - >&2 echo -e "\033[1;31mMissing Github Token! Please get a BotToken from 'Github Settings->Developer settings->Personal access tokens' and set it in Repo Secrect\033[0m" + >&2 echo -e "\033[1;31mMissing Github Token(GHTOKEN)! Please get a BotToken from 'Github Settings->Developer settings->Personal access tokens' and set it in Repo Secrect\033[0m" exit 1 fi if [ -z $BOTTOKEN ]; then - >&2 echo -e "\033[1;31mMissing Bot Token! Please get a BotToken from @Botfather on Telegram and set it in Repo Secrect\033[0m" + >&2 echo -e "\033[1;31mMissing Bot Token(BOTTOKEN)! Please get a BotToken from @Botfather on Telegram and set it in Repo Secrect\033[0m" exit 2 fi if [ -z $CHATIDS ]; then - >&2 echo -e "\033[1;31mMissing ChatIds! Please get ChatId from @GroupIDbot on Telegram Chats(Muti chatids split with comma ',') and set it in Repo Environment Values\033[0m" + >&2 echo -e "\033[1;31mMissing ChatIds(CHATIDS)! Please get ChatId from @GroupIDbot on Telegram Chats(Muti chatids split with comma ',') and set it in Repo Environment Values\033[0m" exit 2 fi