A package manager.
https://www.seancassidy.me/dont-pipe-to-your-shell.html
https://sysdig.com/blog/friends-dont-let-friends-curl-bash/
https://news.ycombinator.com/item?id=12766049
Bonus points: serving a different script to people piping to bash, and those not:
https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-b...