Skip to content

Commit d42674b

Browse files
committed
fix: use portable shell detection instead of hardcoded /bin/zsh
Uses process.env.SHELL with /bin/bash fallback so tests pass on GitHub Actions (Ubuntu) which doesn't have zsh installed.
1 parent 45608f0 commit d42674b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/run-bug-hunter.cjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ function sleep(ms) {
205205

206206
function runCommandOnce({ command, timeoutMs }) {
207207
return new Promise((resolve) => {
208-
const child = childProcess.spawn('/bin/zsh', ['-lc', command], {
208+
const shell = process.env.SHELL || '/bin/bash';
209+
const child = childProcess.spawn(shell, ['-lc', command], {
209210
stdio: ['ignore', 'pipe', 'pipe']
210211
});
211212
let stdout = '';

0 commit comments

Comments
 (0)