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. 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();