Clean list

This commit is contained in:
Andros Fenollosa 2020-01-03 08:22:28 +01:00
parent a79d5fbf66
commit 38beec3f34

4
maza
View File

@ -32,9 +32,13 @@ EOF
## UPDATE ## UPDATE
update() { update() {
# Make conf folder
rm -f $CONFIG/$LIST rm -f $CONFIG/$LIST
mkdir -p $CONFIG mkdir -p $CONFIG
# Download DNS list
curl -L -s "https://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts" -o "$CONFIG/$LIST" curl -L -s "https://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts" -o "$CONFIG/$LIST"
# Clear list
sed -n "/<pre>/,/<\/pre>/p" list > "$CONFIG/$LIST"
echo "Done!" echo "Done!"
} }