Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(setup): quote paths in shell commands to support spaces in project path (#729)

Adarsh Mamgain8be68e9a684e
diff --git a/scripts/setup.js b/scripts/setup.js
index 97d04b026..bbb249d59 100644
--- a/scripts/setup.js
+++ b/scripts/setup.js
@@ -56,7 +56,7 @@ async function main() {
const frameworkDir = path.join(nativeDepsDir, "Spacedrive.framework");
if (downloadedNativeDeps || !(await fileExists(nativeDepsDir))) {
await fs.mkdir(nativeDepsDir, { recursive: true });
- await exec(`tar xf ${nativeDepsTarPath} -C ${nativeDepsDir}`);
+ await execFile("tar", ["xf", nativeDepsTarPath, "-C", nativeDepsDir]);
console.log(`Extracted ${nativeDepsFolder}`);
} else console.log(`Using cached ${nativeDepsFolder}`);