mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: #R插件更新修复
This commit is contained in:
parent
e4a64059e2
commit
e62baceeb8
@ -59,9 +59,9 @@ export class update extends plugin {
|
|||||||
|
|
||||||
let command = '';
|
let command = '';
|
||||||
if (isForce) {
|
if (isForce) {
|
||||||
command = `git -C ./plugins/${pluginName}/ pull --no-rebase`
|
|
||||||
} else {
|
|
||||||
command = `git checkout ./plugins/${pluginName}/ && git -C ./plugins/${pluginName}/ pull --no-rebase`
|
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);
|
this.oldCommitId = await this.getcommitId(pluginName);
|
||||||
await e.reply("正在执行更新操作,请稍等");
|
await e.reply("正在执行更新操作,请稍等");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user