mirror of
https://github.com/SinTan1729/CheckIntegrity.git
synced 2024-12-25 08:08:37 -06:00
First commit
This commit is contained in:
commit
4b85779426
1 changed files with 10 additions and 0 deletions
10
checkintegrity
Executable file
10
checkintegrity
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/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
|
Loading…
Reference in a new issue