From c3833f8a87b1fb7857d94f71dd70231a6042ede9 Mon Sep 17 00:00:00 2001
From: Stephan Geisler <synotr@geimist.eu>
Date: Fri, 20 Sep 2019 20:28:54 +0000
Subject: [PATCH] =?UTF-8?q?=E2=80=9Eupdate=5Fblocklist.sh=E2=80=9C=20?=
 =?UTF-8?q?=C3=A4ndern?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 update_blocklist.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/update_blocklist.sh b/update_blocklist.sh
index f02dfaf..dcc92ed 100644
--- a/update_blocklist.sh
+++ b/update_blocklist.sh
@@ -39,7 +39,7 @@ sqlite3 -header -csv /etc/synoautoblock.db "select IP FROM AutoBlockIP WHERE TYP
 # load online IP-list:
 curl -s "https://lists.blocklist.de/lists/${BLOCKLIST_TYP}.txt" | sort > /tmp/onlinelist.txt
 # filter diffs:
-diff "/tmp/before.txt" "/tmp/onlinelist.txt" | grep '^>' | sed -e 's/>//' > /tmp/blocklist.txt  # only diffs from left to right
+diff "/tmp/before.txt" "/tmp/onlinelist.txt" | grep '^>' | sed -e 's/> //' > /tmp/blocklist.txt  # only diffs from left to right
 # stats …
 IPcountdiffs=$(cat "/tmp/blocklist.txt" | grep -Eo "^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$" | wc -l)
 IPcountList=$(cat "/tmp/onlinelist.txt" | grep -Eo "^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$" | wc -l)