mirror of
https://github.com/Nezumi-2711/cloudflare-gateway-pihole-scripts.git
synced 2026-09-22 05:31:50 +00:00
ported list download code to JS
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
#
|
||||
# Use the provided lists or add your own.
|
||||
# There is no limit on the amount of whitelisted domains you can have.
|
||||
|
||||
source $(dirname "$0")/lib/helpers.sh
|
||||
|
||||
# declare an array of urls
|
||||
urls=(
|
||||
https://raw.githubusercontent.com/im-sm/Pi-hole-Torrent-Blocklist/main/all-torrent-trackres.txt
|
||||
@@ -36,7 +34,7 @@ urls=(
|
||||
)
|
||||
|
||||
# download all files in parallel and append them to whitelist.csv
|
||||
download_lists $urls 'whitelist.csv'
|
||||
node download_files.js allowlist.txt ${urls[@]}
|
||||
|
||||
# print a message when done
|
||||
echo "Done. The whitelist.csv file contains merged data from recommended whitelists."
|
||||
echo "Done. The allowlist.txt file contains merged data from recommended whitelists."
|
||||
|
||||
Reference in New Issue
Block a user