From 8b1906c786202823a7e38b06e58deee6547efe84 Mon Sep 17 00:00:00 2001 From: whyour Date: Sat, 28 May 2022 19:04:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A2=E9=98=85=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E6=8E=92=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/subscription.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/back/services/subscription.ts b/back/services/subscription.ts index d29874c8..4a968adb 100644 --- a/back/services/subscription.ts +++ b/back/services/subscription.ts @@ -206,7 +206,7 @@ export default class SubscriptionService { let beforeStr = ''; try { if (doc.sub_before) { - fs.appendFileSync(absolutePath, `\n## 执行开始前命令... `); + fs.appendFileSync(absolutePath, `\n## 执行before命令...\n\n`); beforeStr = await this.promiseExec(doc.sub_before); } } catch (error: any) { @@ -225,7 +225,7 @@ export default class SubscriptionService { let afterStr = ''; try { if (sub.sub_after) { - fs.appendFileSync(absolutePath, `\n\n## 执行结束后命令... `); + fs.appendFileSync(absolutePath, `\n\n## 执行after命令...\n`); afterStr = await this.promiseExec(sub.sub_after); } } catch (error: any) {