Skip to content

Commit 5ed60b5

Browse files
fix(fixtures): issue-6508 provider wrapper survives paths with spaces
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 281840b commit 5ed60b5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎scripts/fixtures/issue-6508/seed.mjs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import * as NodeFS from "node:fs";
1616
import * as NodePath from "node:path";
1717
import * as NodeCrypto from "node:crypto";
1818
import * as NodeChildProcess from "node:child_process";
19+
import * as NodeURL from "node:url";
1920
const [homeArg, preset = "H", environment = "E1"] = process.argv.slice(2);
2021
if (!homeArg || !["H", "N", "P"].includes(preset) || !["E1", "E2"].includes(environment))
2122
throw Error(
@@ -226,7 +227,7 @@ NodeFS.copyFileSync(
226227
);
227228
NodeFS.writeFileSync(
228229
NodePath.join(home, "codex-fixture"),
229-
`#!/bin/sh\nexec node '${NodePath.resolve(new URL("./provider.mjs", import.meta.url).pathname)}' "$@"\n`,
230+
`#!/bin/sh\nexec node '${NodeURL.fileURLToPath(new URL("./provider.mjs", import.meta.url))}' "$@"\n`,
230231
{ mode: 0o755 },
231232
);
232233
const manifest = {

0 commit comments

Comments
 (0)