From ec8838548739ccd51e01b6df0236b16f9486b3c8 Mon Sep 17 00:00:00 2001
From: Pawel Krawczyk
Date: Fri, 9 Jan 2015 13:04:33 +0000
Subject: [PATCH] fix compressed file name
---
blacklist.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blacklist.sh b/blacklist.sh
index ff013ac..a7d363c 100755
--- a/blacklist.sh
+++ b/blacklist.sh
@@ -78,7 +78,7 @@ for url in $urls; do
# this is required for blocklist.de that sends compressed content if asked for it or not
if grep -qi 'content-encoding: gzip' "${headers}"; then
mv "${unsorted_blocklist}" "${unsorted_blocklist}.gz"
- gzip -d "${unsorted_blocklist}"
+ gzip -d "${unsorted_blocklist}.gz"
fi
sort -u <"${unsorted_blocklist}" | egrep "^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$" >"${sorted_blocklist}"