Update SigScript. lean file still getting through

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
Nic0Nic0Nii 3 years ago
parent 39f486af30
commit d3dcd9cbdb
  1. 2
      utils/md5
  2. 10
      utils/search.sh

@ -1,5 +1,5 @@
.coauthors:3785ad38663e5fc43e574914ad067294 - .coauthors:3785ad38663e5fc43e574914ad067294 -
define.sh:d6b20a25a04a60d94f466e48fa60ac69 - define.sh:d6b20a25a04a60d94f466e48fa60ac69 -
main.sh:32a1f953ffca8584d1eb57c0ecd8a582 - main.sh:32a1f953ffca8584d1eb57c0ecd8a582 -
search.sh:bcf5ac8c2011672a60341ecd676accff - search.sh:28d0ede8345514d80cc68cc756870002 -
.updateDirectories:0ede00461e947494545e694040787b3f - .updateDirectories:0ede00461e947494545e694040787b3f -

@ -25,11 +25,11 @@ function check() {
then then
echo " md5: https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1md5" 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 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) cmp -s $1/md5 /tmp/out
if [ "$DIFF" != "" ] if [ "$?" -ne 0 ]
then then
echo " Differences detected!" echo " Differences detected!"
cat /tmp/out
while IFS= read -r line while IFS= read -r line
do do
IFS=':' read -ra split <<< $line IFS=':' read -ra split <<< $line
@ -45,8 +45,8 @@ function check() {
#This could be a different diff, try that one. #This could be a different diff, try that one.
echo " md5: https://raw.githubusercontent.com/sigonasr2/SigScript/main/${CHECKLINE:1}/$1md5" 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 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) cmp -s $1/md5 /tmp/out
if [ "$DIFF" != "" ] if [ "$?" -ne 0 ]
then then
echo " Differences detected here too." 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 curl -H 'Cache-Control: no-cache, no-store' https://raw.githubusercontent.com/sigonasr2/SigScript/main/${CHECKLINE:1}/$1$g --output $1$g

Loading…
Cancel
Save