From 11b2915d908ce62d9e4b1536df942f9fa94d13d1 Mon Sep 17 00:00:00 2001 From: Matt Johnson-Pint Date: Tue, 7 Jan 2025 23:10:30 -0800 Subject: [PATCH 1/2] Quote file path --- cli/src/util/cp.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/src/util/cp.ts b/cli/src/util/cp.ts index 1d8c7a8f5..268e6a9c9 100644 --- a/cli/src/util/cp.ts +++ b/cli/src/util/cp.ts @@ -27,6 +27,10 @@ export { exec }; */ export async function execFileWithExitCode(file: string, args?: string[], options?: cp.ExecFileOptions): Promise<{ stdout: string; stderr: string; exitCode: number }> { return new Promise((resolve, reject) => { + if (options?.shell) { + file = `"${file}"`; + } + cp.execFile(file, args, options, (error, stdout, stderr) => { if (typeof stdout !== "string") stdout = stdout.toString(); if (typeof stderr !== "string") stderr = stderr.toString(); From dd9d9748e17934b4ed74fc66a54ba1265f71fefe Mon Sep 17 00:00:00 2001 From: Matt Johnson-Pint Date: Tue, 7 Jan 2025 23:29:20 -0800 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b29cb4c8..6fdd81c96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 2025-01-07 - CLI 0.16.5 + +- fix: handle space in user profile path [#696](https://github.com/hypermodeinc/modus/pull/696) + ## 2025-01-07 - CLI 0.16.4 No changes. Re-released previous version to fix release issue.