From f72a3e2c30fbfb413f8781f34d493692de502146 Mon Sep 17 00:00:00 2001 From: Calum McConnell Date: Tue, 27 Apr 2021 09:43:59 -0400 Subject: [PATCH] Special-case bowser audit A rename was needed for sanity (according to my understanding of the system), as the distributed version is called bundled.min.js I also removed a space in a comment, to make it clear what line was the commented-out bash and what line was the code --- audit/audit.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/audit/audit.sh b/audit/audit.sh index 9b466d51..54733740 100755 --- a/audit/audit.sh +++ b/audit/audit.sh @@ -296,8 +296,8 @@ function check_resource() { fi # Random sleep if the CDN rejects connections (DoS) - # sleep 0.1s - 0.9s per request - # sleep 0.$(( (RANDOM % 10) + 1 ))s + # sleeps 0.1s - 0.9s per request + #sleep 0.$(( (RANDOM % 10) + 1 ))s # Use Tor Proxy if set if [ "$USE_TOR" = true ]; then @@ -402,6 +402,8 @@ function create_url() { else url="$CLOUDFLARE/$folder/$version/locales/$jfile" fi + elif [ "$folder" = "bowser" ]; then + url="$CLOUDFLARE/bowser/$version/bundled.min.js" elif [ "$folder" = "select2" ]; then if [[ $subfile =~ (select2\.min\.js|select2\.full\.min\.js)$ ]]; then url="$CLOUDFLARE/$folder/$version/js/$subfile"