Skip to content

Commit 2ef8dff

Browse files
committed
fix: Compatible with paths containing spaces
1 parent f7efce6 commit 2ef8dff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/autocut/download.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ function unzip(
135135
cb("error", `解压失败:${err},请重试`)
136136
} else {
137137
if(os.platform().indexOf("darwin") === 0){
138-
execSync(`chmod -R 777 ${path.resolve(excutePath, "..")}`)
139-
execSync(`cd ${path.resolve(excutePath, "..")} && bash ./build.sh`)
138+
execSync(`chmod -R 777 "${path.resolve(excutePath, "..")}"`)
139+
execSync(`cd "${path.resolve(excutePath, "..")}" && bash ./build.sh`)
140140
}
141141
cb("success", excutePath )
142142
}

0 commit comments

Comments
 (0)