Piping curl into sh without -f? A 404 page gets fed straight to your shell.
-f fails on HTTP errors instead of printing the error page. -s hides progress, -S still shows errors, -L follows redirects.
curl -fsSL https://example.com/install.sh | sh
commit 53ecdda