mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-06 08:10:48 +00:00
The autonomous refactoring reverted all our macOS fixes in shared/common.sh: 1. nc_listen: removed spurious -p flag check that misfires on macOS BSD nc (BSD nc's -p means source port, not listen port — wrong syntax) 2. start_oauth_server: replaced echo -e (broken on macOS bash 3.x) with printf-based write_oauth_response_file called before the subshell. Removed local vars from subshell (not function scope). 3. ((elapsed++)) / ((attempt++)) → $((var + 1)) to avoid set -e killing the script when the value is 0 (evaluates falsy). Co-authored-by: Sprite <noreply@sprite.dev> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| common.sh | ||