mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-22 06:58:24 +00:00
修复#喵喵更新图像的路径存在空格问题
This commit is contained in:
parent
9a8dd06612
commit
b43b59dd47
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user