Skip to content

Commit

Permalink
fix: handle space in user profile path (#696)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint authored Jan 8, 2025
1 parent b0a0013 commit 122fd02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 4 additions & 0 deletions cli/src/util/cp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 122fd02

Please sign in to comment.