-
-
Save virtualadrian/e61bf10108ca5a120b06202e55b9792d to your computer and use it in GitHub Desktop.
If you're going to curl to shell, at *least* verify the checksum!
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
( | |
script=$(curl -fsSL <INSERT URL HERE>); | |
checksum=$(echo "$script" | shasum -pa256 | cut -c-64); | |
test $checksum = <INSERT CHECKSUM HERE> || exit 1; | |
sh -c "$script"; | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment