mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 修复强制更新
This commit is contained in:
parent
a0216dae4f
commit
b5f4b9191f
@ -59,7 +59,7 @@ export class update extends plugin {
|
|||||||
|
|
||||||
let command = `git -C ./plugins/${pluginName}/ pull --no-rebase`;
|
let command = `git -C ./plugins/${pluginName}/ pull --no-rebase`;
|
||||||
if (isForce) {
|
if (isForce) {
|
||||||
command = `git reset --hard origin/master && ${command}`;
|
command = `git -C ./plugins/${pluginName}/ checkout . && ${command}`;
|
||||||
}
|
}
|
||||||
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