From d3dcd9cbdb7ba1d3ecaa11bccc8e6bd121efa64f Mon Sep 17 00:00:00 2001 From: Nic0Nic0Nii Date: Thu, 19 May 2022 20:25:22 +0000 Subject: [PATCH] Update SigScript. lean file still getting through Co-authored-by: sigonasr2 --- utils/md5 | 2 +- utils/search.sh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/utils/md5 b/utils/md5 index ebfc281..715e752 100644 --- a/utils/md5 +++ b/utils/md5 @@ -1,5 +1,5 @@ .coauthors:3785ad38663e5fc43e574914ad067294 - define.sh:d6b20a25a04a60d94f466e48fa60ac69 - main.sh:32a1f953ffca8584d1eb57c0ecd8a582 - -search.sh:bcf5ac8c2011672a60341ecd676accff - +search.sh:28d0ede8345514d80cc68cc756870002 - .updateDirectories:0ede00461e947494545e694040787b3f - diff --git a/utils/search.sh b/utils/search.sh index 7bf8004..5392df5 100644 --- a/utils/search.sh +++ b/utils/search.sh @@ -25,11 +25,11 @@ function check() { then echo " md5: https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1md5" curl -H 'Cache-Control: no-cache, no-store' -s https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1md5 --output /tmp/out - DIFF=$(diff $1/md5 /tmp/out) - if [ "$DIFF" != "" ] + cmp -s $1/md5 /tmp/out + if [ "$?" -ne 0 ] then echo " Differences detected!" - + cat /tmp/out while IFS= read -r line do IFS=':' read -ra split <<< $line @@ -45,8 +45,8 @@ function check() { #This could be a different diff, try that one. echo " md5: https://raw.githubusercontent.com/sigonasr2/SigScript/main/${CHECKLINE:1}/$1md5" curl -H 'Cache-Control: no-cache, no-store' -s https://raw.githubusercontent.com/sigonasr2/SigScript/main/${CHECKLINE:1}/$1md5 --output /tmp/out - DIFF=$(diff $1/md5 /tmp/out) - if [ "$DIFF" != "" ] + cmp -s $1/md5 /tmp/out + if [ "$?" -ne 0 ] then echo " Differences detected here too." curl -H 'Cache-Control: no-cache, no-store' https://raw.githubusercontent.com/sigonasr2/SigScript/main/${CHECKLINE:1}/$1$g --output $1$g