Created
January 10, 2018 14:13
-
-
Save chadyred/a39d8cff0d6c251df3677e76cc090a20 to your computer and use it in GitHub Desktop.
shasum-check-key
This file contains 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
#!/bin/sh | |
# $1 : file with keys | |
# $2 : certificat (256 - 512) | |
# $3 : binary to check. | |
cat $1 | grep "`shasum -a $2 $3`" | |
if grep -q "`shasum -a $2 $3`" $1 | |
then | |
echo "OK"; | |
else | |
echo "NOT OK"; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment