From 56e026e61748ef418761f6d784abd2da48d11cb8 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Sat, 4 Jan 2020 08:17:41 +0100 Subject: [PATCH] Best format --- maza | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/maza b/maza index 26badc4..4a9cb50 100755 --- a/maza +++ b/maza @@ -52,16 +52,10 @@ update() { 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" + curl -L -s "https://pgl.yoyo.org/adservers/serverlist.php?showintro=0&mimetype=plaintext" -o "$CONFIG/$LIST" # Clear list - ## Get PRE tag - sed -i .bak -n "/
/,/<\/pre>/p" "$CONFIG/$LIST"
     ## Remove comments
     sed -i .bak '/^#/ d' "$CONFIG/$LIST"
-    ## Remove first line
-    sed -i .bak '1d' "$CONFIG/$LIST"
-    ## Remove last line
-    sed -i .bak '$ d' "$CONFIG/$LIST"
     ## Add start tag DNS list in first line
     sed -i .bak "1i\\
         $AUTHOR