mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-07 09:10:55 +00:00
printf -v was introduced in bash 4.0 but macOS ships bash 3.2. _update_retry_interval() in shared/common.sh used printf -v and is called from generic_ssh_wait and _cloud_api_retry_loop — meaning ALL SSH connectivity checks and cloud API retries would fail on macOS with: "printf: -v: invalid option" Changes: - shared/common.sh: replace printf -v with eval in _update_retry_interval() - shared/common.sh: remove dead code in calculate_retry_backoff() where next_interval was computed but never used - shared/key-request.sh: same printf -v fix - test/macos-compat.sh: add MC013 rule to catch printf -v in future Agent: code-health Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| common.sh | ||
| github-auth.sh | ||
| key-request.sh | ||