getShell() on Unix returns process.env.SHELL || /bin/sh, which may be zsh, fish, or plain sh. When a script file is passed as an argument to these shells (file mode), the #!/bin/bash shebang is ignored and bash-specific syntax in ao-doctor.sh / ao-update.sh / setup.sh breaks. Fix: hardcode bash on Unix (AO_BASH_PATH still overrides it), use getShell() only on Windows where bash is unavailable. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| dashboard-rebuild.test.ts | ||
| format.test.ts | ||
| openclaw-probe.test.ts | ||
| plugins.test.ts | ||
| preflight.test.ts | ||
| project-resolution.test.ts | ||
| script-runner.test.ts | ||
| session-utils.test.ts | ||
| shell.test.ts | ||