1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Updated: audit.sh

This commit is contained in:
nobody
2021-03-31 07:15:54 +02:00
parent 54352a7c46
commit 8422c2b24f

View File

@@ -293,11 +293,11 @@ function check_resource() {
# Use Tor Proxy if set
if [ "$USE_TOR" = true ]; then
if ! torsocks wget -qO ./tmp "$url"; then
if ! torsocks wget -t 3 -qO ./tmp "$url"; then
error=true
fi
else
if ! wget -qO ./tmp "$url"; then
if ! wget -t 3 -qO ./tmp "$url"; then
error=true
fi
fi
@@ -553,6 +553,9 @@ function create_url() {
if [ "${arr_cycle[$subfile]}" != "" ]; then
url="$CLOUDFLARE/$folder/$version/${arr_cycle[$subfile]}"
fi
elif [ "$folder" = "semantic-ui" ]; then
relativpath=$(echo -e "$path" | awk -F"../$folder/$version" '{print $NF}')
url="$CLOUDFLARE/$folder/$version/$relativpath"
else
if [ "$subfile" = "$jfile" ]; then
url="$CLOUDFLARE/$folder/$version/$subfile"