mirror of
https://github.com/Nezumi-2711/cloudflare-gateway-pihole-scripts.git
synced 2026-09-22 13:38:37 +00:00
ported list download code to JS
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
source $(dirname "$0")/lib/helpers.sh
|
||||
|
||||
# declare an array of urls
|
||||
urls=(
|
||||
https://raw.githubusercontent.com/mullvad/dns-blocklists/main/output/doh/doh_adblock.txt
|
||||
@@ -13,7 +11,7 @@ urls=(
|
||||
)
|
||||
|
||||
# download all files in parallel and append them to input.csv
|
||||
download_lists $urls 'input.csv'
|
||||
node download_files.js blocklist.txt ${urls[@]}
|
||||
|
||||
# print a message when done
|
||||
echo "Done. The input.csv file contains merged data from recommended filter lists."
|
||||
echo "Done. The blocklist.txt file contains merged data from recommended filter lists."
|
||||
|
||||
Reference in New Issue
Block a user