diff --git a/utils/md5 b/utils/md5 index 72b1ec0..75a52c9 100644 --- a/utils/md5 +++ b/utils/md5 @@ -1,5 +1,5 @@ .coauthors:3785ad38663e5fc43e574914ad067294 - define.sh:d6b20a25a04a60d94f466e48fa60ac69 - main.sh:32a1f953ffca8584d1eb57c0ecd8a582 - -search.sh:96e1cfe7bfb635d9773265f416378f15 - +search.sh:a1bad2e2e06621e7a84712a0b360b45c - .updateDirectories:0ede00461e947494545e694040787b3f - diff --git a/utils/search.sh b/utils/search.sh index 01d126a..298d508 100644 --- a/utils/search.sh +++ b/utils/search.sh @@ -29,8 +29,11 @@ function check() { if [ "$DIFF" != "" ] then echo " Differences detected!" - for g in $FILES2 + + while IFS= read -r line do + IFS=':' read -ra split <<< $line + g="${split[0]}" if [ "$g" != "md5" ]; then if [ -f $1$g ]; then @@ -55,9 +58,12 @@ function check() { 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 + else + echo "++==Downloading $1$g..." + curl -H 'Cache-Control: no-cache, no-store' https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output scripts/$g fi fi - done + done < utils/.coauthors fi fi for g in $FILES2