|
|
@ -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 |
|
|
|