From ac904cae6176db522b31c3da1f98c18454106050 Mon Sep 17 00:00:00 2001 From: whyour Date: Wed, 23 Aug 2023 22:57:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=81=9C=E6=AD=A2=E8=AE=A2?= =?UTF-8?q?=E9=98=85=E6=89=A7=E8=A1=8C=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/subscription.ts | 8 -------- shell/update.sh | 6 +++--- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/back/services/subscription.ts b/back/services/subscription.ts index 008a5e91..960bdfef 100644 --- a/back/services/subscription.ts +++ b/back/services/subscription.ts @@ -304,14 +304,6 @@ export default class SubscriptionService { this.logger.error(error); } } - const absolutePath = await handleLogPath(doc.log_path as string); - - fs.appendFileSync( - `${absolutePath}`, - `\n## 执行结束... ${dayjs().format( - 'YYYY-MM-DD HH:mm:ss', - )}${LOG_END_SYMBOL}`, - ); } await SubscriptionModel.update( diff --git a/shell/update.sh b/shell/update.sh index bb0ced5e..a33cd87a 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -31,7 +31,7 @@ output_list_add_drop() { local list=$1 local type=$2 if [[ -s $list ]]; then - echo -e "检测到有${type}的定时任务:\n" + echo -e "检测到有${type}的定时任务:" cat $list echo fi @@ -134,10 +134,10 @@ update_repo() { git_clone_scripts "${formatUrl}" ${repo_path} "${branch}" "${proxy}" if [[ $exit_status -eq 0 ]]; then - echo -e "\n更新${repo_path}成功...\n" + echo -e "\n拉取 ${uniq_path} 成功...\n" diff_scripts "$repo_path" "$author" "$path" "$blackword" "$dependence" "$extensions" "$autoAddCron" "$autoDelCron" else - echo -e "\n更新${repo_path}失败,请检查网络...\n" + echo -e "\n拉取 ${uniq_path} 失败,请检查网络...\n" fi }