Update update.js (#173)
This commit is contained in:
parent
e6574a0f11
commit
1d46675d63
|
@ -108,10 +108,13 @@ export class update extends plugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (plugin) {
|
if (plugin) {
|
||||||
cm = `git -C ./plugins/${plugin}/ pull --no-rebase`
|
if (this.e.msg.includes('强制')) {
|
||||||
// 请带上脑子来水pr
|
type = '强制更新'
|
||||||
// cm = `git -C ./plugins/${plugin}/ fetch --all && git -C ./plugins/${plugin}/ reset --hard && git -C ./plugins/${plugin}/ pull`
|
cm = `git -C ./plugins/${plugin}/ fetch --all && git -C ./plugins/${plugin}/ reset --hard && git -C ./plugins/${plugin}/ pull`
|
||||||
}
|
}else{
|
||||||
|
cm = `git -C ./plugins/${plugin}/ pull --no-rebase`
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.oldCommitId = await this.getcommitId(plugin)
|
this.oldCommitId = await this.getcommitId(plugin)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue