| author | |
| committer | |
| log | 4d886b99f5f786ee407d8d38d77c0e9d1c7548da |
| tree | 94242deff5b3034c9aeb0caca626343c2c0452d6 |
| parent | 4e791759cfecaa74319959fe800e0a34c680c442 |
Co-authored-by: codex <codex@users.noreply.github.com>2 files changed, 2 insertions(+), 2 deletions(-)
apps/web/src/projectScripts.test.ts+1-1| ... | ... | @@ -40,7 +40,7 @@ describe("projectScripts helpers", () => { |
| 40 | 40 | { T3CODE_PROJECT_ROOT: '%USERPROFILE%^"repo"' }, |
| 41 | 41 | "Win32", |
| 42 | 42 | ); |
| 43 | expect(command).toBe('set "T3CODE_PROJECT_ROOT=%%USERPROFILE%%^^""repo""" && bun install'); | |
| 43 | expect(command).toBe('set "T3CODE_PROJECT_ROOT=^%USERPROFILE^%^^""repo""" && bun install'); | |
| 44 | 44 | }); |
| 45 | 45 | |
| 46 | 46 | it("resolves primary and setup scripts", () => { |
apps/web/src/projectScripts.ts+1-1| ... | ... | @@ -57,7 +57,7 @@ function shellEscapePosix(value: string): string { |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | function shellEscapeWindowsSetValue(value: string): string { |
| 60 | return value.replace(/\^/g, "^^").replace(/%/g, "%%").replace(/"/g, '""'); | |
| 60 | return value.replace(/\^/g, "^^").replace(/%/g, "^%").replace(/"/g, '""'); | |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | export function injectEnvIntoShellCommand( |