Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit 122fd02

Browse files
fix: handle space in user profile path (#696)
1 parent b0a0013 commit 122fd02

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 2025-01-07 - CLI 0.16.5
4+
5+
- fix: handle space in user profile path [#696](https://github.com/hypermodeinc/modus/pull/696)
6+
37
## 2025-01-07 - CLI 0.16.4
48

59
No changes. Re-released previous version to fix release issue.

cli/src/util/cp.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ export { exec };
2727
*/
2828
export async function execFileWithExitCode(file: string, args?: string[], options?: cp.ExecFileOptions): Promise<{ stdout: string; stderr: string; exitCode: number }> {
2929
return new Promise((resolve, reject) => {
30+
if (options?.shell) {
31+
file = `"${file}"`;
32+
}
33+
3034
cp.execFile(file, args, options, (error, stdout, stderr) => {
3135
if (typeof stdout !== "string") stdout = stdout.toString();
3236
if (typeof stderr !== "string") stderr = stderr.toString();

0 commit comments

Comments
 (0)