mirror of
https://github.com/SinTan1729/CheckIntegrity.git
synced 2024-12-26 08:38:35 -06:00
11 lines
138 B
Text
11 lines
138 B
Text
|
#!/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
|