marina von steinkirch e014e27fc1 update checksum script
2016-04-24 22:25:59 -07:00

17 lines
249 B
Bash
Executable File

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