add a script

This commit is contained in:
marina von steinkirch 2016-04-24 22:05:49 -07:00
parent 58bd787cc3
commit 7ae6b4572f

View file

@ -0,0 +1,16 @@
#!/bin/bash
# usage:
# ./check_checksum.sh <file> <hash>
filehash=`md5 -q $1`
echo "Checking file: $1, calculated as $filehash"
echo "Using MD5 file: $2"
if [ $filehash != $2 ]
then
echo "MD5 sums mismatch!!!"
else
echo "Checksums OK."
fi