install.sh was created in Phase 9 (commit 50b2132). Verified it passes
bash -n, covers x86_64/aarch64 musl targets, installs with -m 755 to
~/.local/bin, and runs claude-print --check post-install.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1.2 KiB
1.2 KiB
Bead bf-3vj: install.sh for claude-print binary
Status: Complete (pre-existing)
install.sh was created as part of Phase 9 (commit 50b2132). No changes were required.
Verification
bash -n install.sh → passes (POSIX-compatible /bin/sh shebang, set -e).
What install.sh does
- Detects architecture (
x86_64→x86_64-unknown-linux-musl,aarch64→aarch64-unknown-linux-musl) - Downloads
claude-print-<TARGET>fromhttps://github.com/jedarden/claude-print/releases/latest/download/ - Backs up any existing binary to
~/.local/bin/claude-print.prev - Installs with
install -m 755to~/.local/bin/claude-print - Optionally installs
mock_claude(skippable viaSKIP_MOCK_CLAUDE=1) - Installs
claude-print.yamlto~/.needle/agents/if NEEDLE is present - Runs
claude-print --checkto verify the binary works before exiting
Acceptance criteria
bash -n install.shpasses- Downloads correct binary for platform from GitHub releases
- Installs to
~/.local/bin/claude-printwith executable permissions (-m 755) - Runs
claude-print --checkafter install - POSIX-compatible (
#!/bin/sh, POSIX constructs only)