From e778fc86e2e711c4ce288bac960bb27ef50903be Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Fri, 7 Jan 2022 02:47:57 -0600 Subject: [PATCH] Made POSIX compliant --- CheckIntegrity | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CheckIntegrity b/CheckIntegrity index d6aeb19..78cb3fc 100644 --- a/CheckIntegrity +++ b/CheckIntegrity @@ -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}"