🐞 fix: #R插件更新修复

This commit is contained in:
zhiyu1998 2023-02-15 14:57:48 +08:00
parent e4a64059e2
commit e62baceeb8

View File

@ -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("正在执行更新操作,请稍等");