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> |
||
|---|---|---|
| .. | ||
| commands | ||
| lib | ||
| options | ||
| scripts | ||
| index.test.ts | ||
| lifecycle-service.test.ts | ||
| program.test.ts | ||