🦺 修改强制更新命令
This commit is contained in:
@@ -65,9 +65,10 @@ export class Update extends plugin {
|
||||
* @returns
|
||||
*/
|
||||
async runUpdate (isForce) {
|
||||
let command = 'git -C ./plugins/yenai-plugin/ pull --no-rebase'
|
||||
const _path = './plugins/yenai-plugin/'
|
||||
let command = `git -C ${_path} pull --no-rebase`
|
||||
if (isForce) {
|
||||
command = `git -C ./plugins/yenai-plugin/ checkout . && ${command}`
|
||||
command = `git -C ${_path} fetch --all && git -C ${_path} reset --hard HEAD`
|
||||
this.e.reply('正在执行强制更新操作,请稍等')
|
||||
} else {
|
||||
this.e.reply('正在执行更新操作,请稍等')
|
||||
|
||||
Reference in New Issue
Block a user