Created
March 17, 2014 11:27
-
-
Save anonymous/9597661 to your computer and use it in GitHub Desktop.
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
#Bash script to check MD5 | |
if [[ `md5 myfile` == *50afb2c324608e36603cbbb3da0c293a* ]]; then | |
echo "myfile integrity check" | |
... open the file ... | |
else | |
echo "myfile failed integrity check" | |
... EXIT ... | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment