From 38beec3f34545166b9d35ea2815e4eb1ed94a9e2 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Fri, 3 Jan 2020 08:22:28 +0100 Subject: [PATCH] Clean list --- maza | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maza b/maza index d2bc77e..0198cb2 100755 --- a/maza +++ b/maza @@ -32,9 +32,13 @@ EOF ## UPDATE update() { + # Make conf folder rm -f $CONFIG/$LIST mkdir -p $CONFIG + # Download DNS list curl -L -s "https://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts" -o "$CONFIG/$LIST" + # Clear list + sed -n "/
/,/<\/pre>/p" list > "$CONFIG/$LIST"
     echo "Done!"
 }