From 86c1790a029bf35be4a2eec16ce3a56630aac6e5 Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Tue, 17 May 2022 19:46:00 +0000 Subject: [PATCH] Update SigScript --- scripts/md5 | 5 ++++- utils/md5 | 2 +- utils/search.sh | 26 ++++++++++++++------------ 3 files changed, 19 insertions(+), 14 deletions(-) diff --git a/scripts/md5 b/scripts/md5 index 42c4a60..c2f992b 100644 --- a/scripts/md5 +++ b/scripts/md5 @@ -1 +1,4 @@ -1aaed43b1f90e8ca1926f79f20d836e9 - +a833e7598ad65672a9c01306d244b49f - +96ce35f2d2dcb555421e00a6afda23ca - +fe50a24283991ac63984a3afcac1ac41 - +2ac636f584c43a1124affb9ea6bdc7bf - diff --git a/utils/md5 b/utils/md5 index 810273f..b6f315b 100644 --- a/utils/md5 +++ b/utils/md5 @@ -1,3 +1,3 @@ d682bd9df64981bdd93ed1413e96802c - 548480c89fb8d6668a83ee9e534eb2dd - -d51f3526991522d890ca2ebd3f735b75 - +fd74adfda9b84c0c6348060b73a0ec67 - diff --git a/utils/search.sh b/utils/search.sh index 0028a6f..64c7b11 100644 --- a/utils/search.sh +++ b/utils/search.sh @@ -30,20 +30,22 @@ function check() { echo " Differences detected!" for g in $FILES2 do - if [ -f $1$g ]; - 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 - curl https://raw.githubusercontent.com/sigonasr2/SigScript/main/${CHECKLINE:1}/$1$g --output $1$g + if [ "$g" != "md5" ]; then + if [ -f $1$g ]; + 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 + 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 - 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 - 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 done