CheckIntegrity/CheckIntegrity
2020-01-19 17:53:26 +05:30

10 lines
138 B
Bash
Executable file

#!/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