-
-
Save doctaphred/021bea90249f148d91ee85f24f9d4b1a 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