From d528d94245039884fab8904d55552a2ebea94ff0 Mon Sep 17 00:00:00 2001 From: zhiyu1998 Date: Sun, 19 Feb 2023 17:38:35 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=88=20style:=20=E7=BE=8E=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=EF=BC=8C=E6=96=B9=E4=BE=BF?= =?UTF-8?q?=E9=98=85=E8=AF=BB=E6=BA=90=E7=A0=81=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/update.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/update.js b/apps/update.js index 9ae8460..98d58de 100644 --- a/apps/update.js +++ b/apps/update.js @@ -63,7 +63,7 @@ export class update extends plugin { } else { command = `git -C ./plugins/${pluginName}/ pull --no-rebase`; } - this.oldCommitId = await this.getcommitId(pluginName); + this.oldCommitId = await this.getCommitId(pluginName); await e.reply("正在执行更新操作,请稍等"); let ret = await this.execSync(command); @@ -83,7 +83,7 @@ export class update extends plugin { return true; } - async getcommitId(pluginName) { + async getCommitId(pluginName) { // let cm = 'git rev-parse --short HEAD' const command = `git -C ./plugins/${pluginName}/ rev-parse --short HEAD`; let commitId = execSync(command, { encoding: "utf-8" });