修复#喵喵更新图像的路径存在空格问题

This commit is contained in:
yoimiya-kokomi 2022-04-24 20:40:52 +08:00
parent 9a8dd06612
commit b43b59dd47

View File

@ -112,7 +112,7 @@ export async function updateRes(e) {
let command = "";
if (fs.existsSync(`${resPath}/miao-res-plus/`)) {
e.reply("开始尝试更新,请耐心等待~");
command = `git -C ${resPath}/miao-res-plus pull`;
command = `git -C "${resPath}/miao-res-plus" pull`;
exec(command, function (error, stdout, stderr) {
console.log(stdout);
if (/Already up to date/.test(stdout)) {
@ -131,7 +131,7 @@ export async function updateRes(e) {
}
});
} else {
command = `git clone https://gitee.com/yoimiya-kokomi/miao-res-plus.git '${resPath}/miao-res-plus/'`;
command = `git clone https://gitee.com/yoimiya-kokomi/miao-res-plus.git "${resPath}/miao-res-plus/"`;
e.reply("开始尝试安装图片加量包,可能会需要一段时间,请耐心等待~");
exec(command, function (error, stdout, stderr) {
if (error) {