mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-22 11:24:18 +00:00
The scripts were failing when run via curl | bash because they tried to read from /dev/tty which doesn't exist in piped contexts. ## Changes - Added safe_read() helper function that gracefully handles TTY absence - Updated get_sprite_name() to support SPRITE_NAME env variable - Updated all read commands to use safe_read() - Added clear error messages for non-interactive usage - Updated README with non-interactive mode documentation ## Usage Interactive: curl URL | bash Non-interactive: SPRITE_NAME=dev-mk1 curl URL | bash SPRITE_NAME=dev-mk1 OPENROUTER_API_KEY=sk-xxx curl URL | bash ## Fixes - /dev/tty: No such device or address error - Scripts now work in CI/CD and automated contexts - OAuth fallback still works via OPENROUTER_API_KEY env var Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .claude/rules | ||
| lib | ||
| claude.sh | ||
| openclaw.sh | ||