Created
February 2, 2026 16:59
-
-
Save kristovatlas/544b2d7a8314cf21c67e33b5a081695a to your computer and use it in GitHub Desktop.
Install Claude Code based on known-good hash instead of curl-bashing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -fsSL https://claude.ai/install.sh -o install.sh && checksum="$(sha256sum install.sh | awk '{print $1}')" | |
| if [ "$checksum" = "363382bed8849f78692bd2f15167a1020e1f23e7da1476ab8808903b6bebae05" ]; then | |
| echo "Checksum matched." | |
| echo "Proceed with installation? (Y/n)" | |
| read response | |
| if [ "$response" = "Y" ] || [ "$response" = "y" ] || [ -z "$response" ]; then bash install.sh; else | |
| echo "Installation aborted." | |
| rm -f install.sh | |
| exit 0 | |
| fi | |
| else | |
| echo "Error: Checksum failed" | |
| rm -f install.sh | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -fsSL https://claude.ai/install.sh -o install.sh && checksum="$(sha256sum install.sh | awk '{print $1}')"; if [ "$checksum" = "363382bed8849f78692bd2f15167a1020e1f23e7da1476ab8808903b6bebae05" ]; then echo "Checksum matched."; echo "Proceed with installation? (Y/n)"; read response; if [ "$response" = "Y" ] || [ "$response" = "y" ] || [ -z "$response" ]; then bash install.sh; else echo "Installation aborted."; rm -f install.sh; exit 0; fi; else echo "Error: Checksum failed"; rm -f install.sh; exit 1; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment