Update maza

This commit is contained in:
Andros Fenollosa 2022-03-16 10:16:15 +01:00 committed by GitHub
parent 794b5d3d77
commit 3e355648e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
maza
View File

@ -4,6 +4,7 @@
set -e
# VARIABLES
URL_DNS_LIST="https://pgl.yoyo.org/adservers/serverlist.php?showintro=0&mimetype=plaintext"
NAME_OSX="Darwin"
THIS_OS=$(uname -mrs)
PROGNAME=$(basename $0)
@ -75,7 +76,7 @@ update() {
rm -f $CONFIG$LIST_DNSMASQ
mkdir -p $CONFIG
# Download DNS list
curl -L -s "https://pgl.yoyo.org/adservers/serverlist.php?showintro=0&mimetype=plaintext" -o "$CONFIG$LIST"
curl -L -s "$URL_DNS_LIST" -o "$CONFIG$LIST"
# Clear list
## Remove comments
custom-sed -i.bak '/^#/ d' "$CONFIG$LIST"