Update SigScript updating to use sig.projectdivar.com instead
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
37bddda2d8
commit
c0a9e41c76
@ -1,4 +1,4 @@
|
|||||||
define.sh:3ecab0dffe2adfb950f3eb7c7061b750 -
|
define.sh:3ecab0dffe2adfb950f3eb7c7061b750 -
|
||||||
main.sh:4e6e9f0650ec790ce2c4364db94f0caa -
|
main.sh:4e6e9f0650ec790ce2c4364db94f0caa -
|
||||||
search.sh:81d08f5ff48e8a44b5f68387d426da05 -
|
search.sh:30e1842e9a13452ea883bb6516d28e1c -
|
||||||
.updateDirectories:fa5e95db12be22ae8aed7ecbc560e38c -
|
.updateDirectories:fa5e95db12be22ae8aed7ecbc560e38c -
|
||||||
|
@ -26,8 +26,8 @@ function check() {
|
|||||||
FILES2=$(ls -A $1 2>/dev/null)
|
FILES2=$(ls -A $1 2>/dev/null)
|
||||||
if [ -f "$1/md5" ];
|
if [ -f "$1/md5" ];
|
||||||
then
|
then
|
||||||
echo " md5: https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1md5"
|
echo " md5: http://sig.projectdivar.com/sigonasr2/SigScript/raw/branch/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 "http://sig.projectdivar.com/sigonasr2/SigScript/raw/branch/main/$1md5" --output /tmp/out
|
||||||
cmp -s $1/md5 /tmp/out
|
cmp -s $1/md5 /tmp/out
|
||||||
if [ "$?" -ne 0 ]
|
if [ "$?" -ne 0 ]
|
||||||
then
|
then
|
||||||
@ -44,15 +44,15 @@ function check() {
|
|||||||
if [ "$g" != ".coauthors" ] && [ "$g" != "version_info" ]; then
|
if [ "$g" != ".coauthors" ] && [ "$g" != "version_info" ]; then
|
||||||
echo "++Redownload $1$g..."
|
echo "++Redownload $1$g..."
|
||||||
if [ -f "$1$g" ]; then
|
if [ -f "$1$g" ]; then
|
||||||
curl -H 'Cache-Control: no-cache, no-store' "https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g" --output $1$g
|
curl -H 'Cache-Control: no-cache, no-store' "http://sig.projectdivar.com/sigonasr2/SigScript/raw/branch/main/$1$g" --output $1$g
|
||||||
else
|
else
|
||||||
echo "===Could not find directory, assuming regular scripts directory exists."
|
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 $LANGUAGE/scripts/$g
|
curl -H 'Cache-Control: no-cache, no-store' "http://sig.projectdivar.com/sigonasr2/SigScript/raw/branch/main/$1$g" --output $LANGUAGE/scripts/$g
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "++==Downloading $1$g..."
|
echo "++==Downloading $1$g..."
|
||||||
curl -H 'Cache-Control: no-cache, no-store' "https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g" --output $1$g
|
curl -H 'Cache-Control: no-cache, no-store' "http://sig.projectdivar.com/sigonasr2/SigScript/raw/branch/main/$1$g" --output $1$g
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done < /tmp/out
|
done < /tmp/out
|
||||||
@ -60,8 +60,8 @@ function check() {
|
|||||||
fi
|
fi
|
||||||
if [ -f "$1/filelist" ];
|
if [ -f "$1/filelist" ];
|
||||||
then
|
then
|
||||||
echo " filelist: https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1filelist"
|
echo " filelist: http://sig.projectdivar.com/sigonasr2/SigScript/raw/branch/main/$1filelist"
|
||||||
curl -H 'Cache-Control: no-cache, no-store' -s "https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1filelist" --output /tmp/out
|
curl -H 'Cache-Control: no-cache, no-store' -s "http://sig.projectdivar.com/sigonasr2/SigScript/raw/branch/main/$1filelist" --output /tmp/out
|
||||||
cmp -s $1/filelist /tmp/out
|
cmp -s $1/filelist /tmp/out
|
||||||
if [ "$?" -ne 0 ]
|
if [ "$?" -ne 0 ]
|
||||||
then
|
then
|
||||||
@ -78,15 +78,15 @@ function check() {
|
|||||||
if [ "$g" != ".coauthors" ] && [ "$g" != "version_info" ]; then
|
if [ "$g" != ".coauthors" ] && [ "$g" != "version_info" ]; then
|
||||||
echo "++Redownload $1$g..."
|
echo "++Redownload $1$g..."
|
||||||
if [ -f "$1$g" ]; then
|
if [ -f "$1$g" ]; then
|
||||||
curl -H 'Cache-Control: no-cache, no-store' "https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g" --output $1$g
|
curl -H 'Cache-Control: no-cache, no-store' "http://sig.projectdivar.com/sigonasr2/SigScript/raw/branch/main/$1$g" --output $1$g
|
||||||
else
|
else
|
||||||
echo "===Could not find directory, assuming regular scripts directory exists."
|
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 $LANGUAGE/scripts/$g
|
curl -H 'Cache-Control: no-cache, no-store' "http://sig.projectdivar.com/sigonasr2/SigScript/raw/branch/main/$1$g" --output $LANGUAGE/scripts/$g
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "++==Downloading $1$g..."
|
echo "++==Downloading $1$g..."
|
||||||
curl -H 'Cache-Control: no-cache, no-store' "https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g" --output $1$g
|
curl -H 'Cache-Control: no-cache, no-store' "http://sig.projectdivar.com/sigonasr2/SigScript/raw/branch/main/$1$g" --output $1$g
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done < /tmp/out
|
done < /tmp/out
|
||||||
|
Loading…
x
Reference in New Issue
Block a user