Files
dotfiles-public/.tests/mutations/28-claude-script-piped-to-bash.mut
T
bcherb2 6fa7603633 test: mutations for the claude script, desktop key and go channel
Piping the Claude Code installer into bash, placing the Claude Desktop key
unverified, and running the go channel before go is unpacked. The unit suite
kills all three.
2026-11-18 02:01:01 -05:00

12 lines
574 B
Plaintext

# what: Claude Code's installer piped straight into bash instead of downloaded and checked
# why: no pipefail: a 404 or truncated body runs AND reports success
# kills: …checks it arrived non-empty
# run: unit
<<<OLD
run_sh "curl -fsSL https://claude.ai/install.sh -o '$WORKDIR/claude-install.sh' && [ -s '$WORKDIR/claude-install.sh' ]" \
|| { note_fail "$key" "the Claude Code install script download failed or arrived empty"; continue; }
run_sh "bash '$WORKDIR/claude-install.sh'" \
<<<NEW
run_sh "curl -fsSL https://claude.ai/install.sh | bash" \
<<<END