Revert to an older state without additional language checking

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
Nic0Nic0Nii 3 years ago
parent 58894263b4
commit 576076c8c6
  1. 2
      utils/md5
  2. 18
      utils/search.sh

@ -1,5 +1,5 @@
.coauthors:3785ad38663e5fc43e574914ad067294 -
define.sh:74ea08fb12cab1053663f87007ddd29a -
main.sh:eacf0984141d284db6681dee4dc39ffa -
search.sh:be052f906597073e394234adf51e0fb8 -
search.sh:7162a8e3487a5cca5a3a24d55230e24d -
.updateDirectories:0ede00461e947494545e694040787b3f -

@ -41,24 +41,10 @@ function check() {
if [ "$g" != ".coauthors" ]; then
echo "++Redownload $1$g..."
if [ -f "$1$g" ]; then
#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
#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/md5
cmp -s $1/md5 /tmp/md5
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
fi
else
curl -H 'Cache-Control: no-cache, no-store' https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output $1$g
fi
curl -H 'Cache-Control: no-cache, no-store' https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output $1$g
else
echo "===Could not find directory, assuming regular scripts directory exists."
curl -H 'Cache-Control: no-cache, no-store' https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output scripts/$g
curl -H 'Cache-Control: no-cache, no-store' https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output $LANGUAGE/scripts/$g
fi
fi
else

Loading…
Cancel
Save