Created
January 10, 2018 14:13
-
-
Save chadyred/ab3c9030106c76573dd169a65c109787 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