No need to download md5 files

main
sigonasr2, Sig, Sigo 3 years ago
parent ecd8a104ea
commit 1a36ea04bf
  1. 2
      utils/md5
  2. 26
      utils/search.sh

@ -1,3 +1,3 @@
d682bd9df64981bdd93ed1413e96802c - d682bd9df64981bdd93ed1413e96802c -
548480c89fb8d6668a83ee9e534eb2dd - 548480c89fb8d6668a83ee9e534eb2dd -
d51f3526991522d890ca2ebd3f735b75 - fd74adfda9b84c0c6348060b73a0ec67 -

@ -30,20 +30,22 @@ function check() {
echo " Differences detected!" echo " Differences detected!"
for g in $FILES2 for g in $FILES2
do do
if [ -f $1$g ]; if [ "$g" != "md5" ]; then
then if [ -f $1$g ];
echo "++Redownload $1$g..." then
if [ -f "$1$g" ]; then echo "++Redownload $1$g..."
#Read the 2nd line and see if it has a special directory. if [ -f "$1$g" ]; then
CHECKLINE=$(sed -n '2{p;q;}' $1$g) #Read the 2nd line and see if it has a special directory.
if [ "${CHECKLINE:0:1}" = "#" ]; then CHECKLINE=$(sed -n '2{p;q;}' $1$g)
curl https://raw.githubusercontent.com/sigonasr2/SigScript/main/${CHECKLINE:1}/$1$g --output $1$g if [ "${CHECKLINE:0:1}" = "#" ]; then
curl https://raw.githubusercontent.com/sigonasr2/SigScript/main/${CHECKLINE:1}/$1$g --output $1$g
else
curl https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output $1$g
fi
else else
curl https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output $1$g echo "===Could not find directory, assuming regular scripts directory exists."
curl https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output scripts/$g
fi fi
else
echo "===Could not find directory, assuming regular scripts directory exists."
curl https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output scripts/$g
fi fi
fi fi
done done

Loading…
Cancel
Save