修改强制更新的方法 (#123)

This commit is contained in:
sameu 2023-05-22 11:40:18 +08:00 committed by GitHub
parent 400009bf44
commit a88d205eb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ export class update extends plugin {
let type = '更新' let type = '更新'
if (this.e.msg.includes('强制')) { if (this.e.msg.includes('强制')) {
type = '强制更新' type = '强制更新'
cm = `git reset --hard origin/master && ${cm}` cm = `git fetch --all && git reset --hard && ${cm}`
} }
if (plugin) { if (plugin) {