mirror of
https://github.com/SinTan1729/CheckIntegrity.git
synced 2024-12-26 00:28:36 -06:00
10 lines
138 B
Bash
Executable file
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
|