From 7ade6e350992d8160f2b8175c767fb0ba567c577 Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Tue, 17 May 2022 19:52:05 +0000 Subject: [PATCH] Update SigScript --- utils/md5 | 2 +- utils/search.sh | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/utils/md5 b/utils/md5 index b6f315b..61650f1 100644 --- a/utils/md5 +++ b/utils/md5 @@ -1,3 +1,3 @@ d682bd9df64981bdd93ed1413e96802c - 548480c89fb8d6668a83ee9e534eb2dd - -fd74adfda9b84c0c6348060b73a0ec67 - +2b4cc4fb64d8f08c043cafba41d29473 - diff --git a/utils/search.sh b/utils/search.sh index 64c7b11..530e7e6 100644 --- a/utils/search.sh +++ b/utils/search.sh @@ -38,7 +38,15 @@ function check() { #Read the 2nd line and see if it has a special directory. CHECKLINE=$(sed -n '2{p;q;}' $1$g) if [ "${CHECKLINE:0:1}" = "#" ]; then - curl https://raw.githubusercontent.com/sigonasr2/SigScript/main/${CHECKLINE:1}/$1$g --output $1$g + #This could be a different diff, try that one. + echo " md5: https://raw.githubusercontent.com/sigonasr2/SigScript/main/${CHECKLINE:1}/$1md5" + curl -s https://raw.githubusercontent.com/sigonasr2/SigScript/main/${CHECKLINE:1}/$1md5 --output /tmp/out + DIFF=$(diff $1/md5 /tmp/out) + if [ "$DIFF" != "" ] + then + echo " Differences detected here too." + curl https://raw.githubusercontent.com/sigonasr2/SigScript/main/${CHECKLINE:1}/$1$g --output $1$g + fi else curl https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output $1$g fi