CheckIntegrity/checkintegrity

11 lines
138 B
Text
Raw Normal View History

2020-01-19 06:21:18 -06:00
#!/bin/bash
f=$1
f+="sum $2 | cut -d ' ' -f1"
if [ $(eval $f) = "$3" ]; then
echo "$2 is fine."
else
echo "$2 is corrupted!"
fi