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 (this.e.msg.includes('强制')) {
|
||||
type = '强制更新'
|
||||
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`
|
||||
// 请带上脑子来水pr
|
||||
// cm = `git -C ./plugins/${plugin}/ fetch --all && git -C ./plugins/${plugin}/ reset --hard && git -C ./plugins/${plugin}/ pull`
|
||||
}
|
||||
}
|
||||
|
||||
this.oldCommitId = await this.getcommitId(plugin)
|
||||
|
||||
|
|
Loading…
Reference in New Issue