From e62baceeb8217253eddc58f14237bc6358033d7a Mon Sep 17 00:00:00 2001 From: zhiyu1998 Date: Wed, 15 Feb 2023 14:57:48 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20#R=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BF=AE=E5=A4=8D?= 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 efe6763..fcbcaf1 100644 --- a/apps/update.js +++ b/apps/update.js @@ -59,9 +59,9 @@ export class update extends plugin { let command = ''; if (isForce) { - command = `git -C ./plugins/${pluginName}/ pull --no-rebase` - } else { command = `git checkout ./plugins/${pluginName}/ && git -C ./plugins/${pluginName}/ pull --no-rebase` + } else { + command = `git -C ./plugins/${pluginName}/ pull --no-rebase` } this.oldCommitId = await this.getcommitId(pluginName); await e.reply("正在执行更新操作,请稍等");