Created
July 23, 2017 21:37
-
-
Save rastating/52a0e81e12ee1ce2d6b5a4b02720997e to your computer and use it in GitHub Desktop.
Helper script for validating files against SHA1 checksums
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/bash | |
if [ "$#" -ne 2 ] | |
then | |
echo "Usage: sha1check [filename] [checksum]" | |
exit 1 | |
fi | |
echo "$2 *$1" | sha1sum -c - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment