Skip to content

Commit

Permalink
细节优化
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeRainStarSky committed May 20, 2024
1 parent 21eea14 commit 8577cae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"oicq": "link:lib/modules/oicq",
"pm2": "^5.3.1",
"puppeteer": "*",
"redis": "^4.6.13",
"redis": "^4.6.14",
"sequelize": "^6.37.3",
"sqlite3": "5.1.6",
"ulid": "^2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion plugins/other/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class update extends plugin {
else if (/be overwritten by merge|被合并操作覆盖/.test(error) || /Merge conflict|合并冲突/.test(stdout))
await this.reply(`${error}\n${stdout}\n若修改过文件请手动更新,否则发送 #强制更新${plugin}`)
else if (/divergent branches|偏离的分支/.test(error)) {
const ret = await this.exec("git pull --rebase")
const ret = await this.exec("git pull --rebase", plugin)
if (!ret.error && /Successfully rebased|成功变基/.test(ret.stdout+ret.stderr))
return true
await this.reply(`${error}\n${stdout}\n若修改过文件请手动更新,否则发送 #强制更新${plugin}`)
Expand Down

0 comments on commit 8577cae

Please sign in to comment.