Skip to content

Commit f17e7f8

Browse files
fix: respect SHELL on Windows for Git Bash (#178)
1 parent 594fd1e commit f17e7f8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/codex/scripts/lib/app-server.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class SpawnedCodexAppServerClient extends AppServerClientBase {
190190
cwd: this.cwd,
191191
env: this.options.env,
192192
stdio: ["pipe", "pipe", "pipe"],
193-
shell: process.platform === "win32",
193+
shell: process.platform === "win32" ? (process.env.SHELL || true) : false,
194194
windowsHide: true
195195
});
196196

plugins/codex/scripts/lib/process.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function runCommand(command, args = [], options = {}) {
88
encoding: "utf8",
99
input: options.input,
1010
stdio: options.stdio ?? "pipe",
11-
shell: process.platform === "win32",
11+
shell: process.platform === "win32" ? (process.env.SHELL || true) : false,
1212
windowsHide: true
1313
});
1414

0 commit comments

Comments
 (0)