|
|
@ -9,7 +9,8 @@ function search() { |
|
|
|
else |
|
|
|
else |
|
|
|
echo "$1$g is a file" |
|
|
|
echo "$1$g is a file" |
|
|
|
if [ $g != "md5" ]; then |
|
|
|
if [ $g != "md5" ]; then |
|
|
|
md5sum < $1$g >> $1md5 |
|
|
|
SUM=$(md5sum < $1$g) |
|
|
|
|
|
|
|
echo "$g:$SUM" >> $1md5 |
|
|
|
else |
|
|
|
else |
|
|
|
echo " md5 file, ignoring..." |
|
|
|
echo " md5 file, ignoring..." |
|
|
|
fi |
|
|
|
fi |
|
|
@ -28,8 +29,11 @@ function check() { |
|
|
|
if [ "$DIFF" != "" ] |
|
|
|
if [ "$DIFF" != "" ] |
|
|
|
then |
|
|
|
then |
|
|
|
echo " Differences detected!" |
|
|
|
echo " Differences detected!" |
|
|
|
for g in $FILES2 |
|
|
|
|
|
|
|
|
|
|
|
while IFS= read -r line |
|
|
|
do |
|
|
|
do |
|
|
|
|
|
|
|
IFS=':' read -ra split <<< $line |
|
|
|
|
|
|
|
g="${split[0]}" |
|
|
|
if [ "$g" != "md5" ]; then |
|
|
|
if [ "$g" != "md5" ]; then |
|
|
|
if [ -f $1$g ]; |
|
|
|
if [ -f $1$g ]; |
|
|
|
then |
|
|
|
then |
|
|
@ -54,9 +58,12 @@ function check() { |
|
|
|
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 scripts/$g |
|
|
|
curl -H 'Cache-Control: no-cache, no-store' https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output scripts/$g |
|
|
|
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 |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
done |
|
|
|
done < /tmp/out |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
for g in $FILES2 |
|
|
|
for g in $FILES2 |
|
|
|