2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-23 03:20:52 +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;
}
let command = "";
if (fs.existsSync(`${resPath}/res-plus/`)) {
if (fs.existsSync(`${resPath}/xiaoyao-plus/`)) {
e.reply("开始尝试更新,请耐心等待~");
command = `git pull`;
exec(command, { cwd: `${resPath}/xiaoyao-plus/` }, function (error, stdout, stderr) {