Update scripts
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
6274ddb503
commit
195e3efa49
5
scripts/clean.sh
Executable file → Normal file
5
scripts/clean.sh
Executable file → Normal file
@ -1,4 +1,3 @@
|
||||
#Cleans up and removes unused files.
|
||||
#
|
||||
#Java
|
||||
find . -type f -name *.class -delete
|
||||
find . -type f -name manifest -delete
|
||||
404: Not Found
|
@ -1,5 +1,5 @@
|
||||
build.sh:a833e7598ad65672a9c01306d244b49f -
|
||||
clean.sh:96ce35f2d2dcb555421e00a6afda23ca -
|
||||
clean.sh:0624843aaeb338a8bda3c2c6edf43b4e -
|
||||
commit.sh:b186d649fa17c68926fe1caec4a7216c -
|
||||
jar.sh:62ce62bbb97d3f3856bcc9b0ad34083c -
|
||||
lean.sh:3be7b8b182ccd96e48989b4e57311193 -
|
||||
|
@ -1,5 +1,5 @@
|
||||
.coauthors:3785ad38663e5fc43e574914ad067294 -
|
||||
define.sh:d6b20a25a04a60d94f466e48fa60ac69 -
|
||||
main.sh:32a1f953ffca8584d1eb57c0ecd8a582 -
|
||||
search.sh:6eec52214a36f2114442c41ab9c04f72 -
|
||||
search.sh:3321258db3b59d8e4cfe04c472516e45 -
|
||||
.updateDirectories:0ede00461e947494545e694040787b3f -
|
||||
|
@ -34,32 +34,33 @@ function check() {
|
||||
do
|
||||
IFS=':' read -ra split <<< $line
|
||||
g="${split[0]}"
|
||||
echo "LINE -- $g"
|
||||
if [ "$g" != "md5" ]; then
|
||||
if [ -f $1$g ];
|
||||
then
|
||||
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/out
|
||||
cmp -s $1/md5 /tmp/out
|
||||
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
|
||||
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
|
||||
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/out
|
||||
cmp -s $1/md5 /tmp/out
|
||||
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
|
||||
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
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
else
|
||||
echo "++==Downloading $1$g..."
|
||||
curl -H 'Cache-Control: no-cache, no-store' https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output $1$g
|
||||
|
Loading…
x
Reference in New Issue
Block a user