mirror of
https://github.com/SinTan1729/CheckIntegrity.git
synced 2024-12-25 08:08:37 -06:00
Made POSIX compliant
This commit is contained in:
parent
4c45b9f293
commit
e778fc86e2
1 changed files with 1 additions and 2 deletions
|
@ -16,8 +16,7 @@ error(){
|
|||
[ $# -ne 3 ] && printf "${bold}Input is wrong!${normal}\n\n" && error && exit -1
|
||||
|
||||
# main code
|
||||
f=$1
|
||||
f+="sum $2 | cut -d ' ' -f1"
|
||||
f="$1sum $2 | cut -d ' ' -f1"
|
||||
|
||||
if [ $(eval $f) = "$3" ]; then
|
||||
echo "$2 is ${bold}fine.${normal}"
|
||||
|
|
Loading…
Reference in a new issue