2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2025-01-04 04:45:36 +08:00

修改bug

This commit is contained in:
leiyilu 2022-06-20 10:20:01 +08:00
parent 74aa6c74fa
commit 2961bdc2d8

View File

@ -50,7 +50,7 @@ export async function updateRes(e) {
return true; return true;
} }
let command = ""; let command = "";
if (fs.existsSync(`${resPath}/res-plus/`)) { if (fs.existsSync(`${resPath}/xiaoyao-plus/`)) {
e.reply("开始尝试更新,请耐心等待~"); e.reply("开始尝试更新,请耐心等待~");
command = `git pull`; command = `git pull`;
exec(command, { cwd: `${resPath}/xiaoyao-plus/` }, function (error, stdout, stderr) { exec(command, { cwd: `${resPath}/xiaoyao-plus/` }, function (error, stdout, stderr) {