From f0ba9ab2fe9c20b260efe9c7a502d8dd353add3f Mon Sep 17 00:00:00 2001
From: Pawel Krawczyk
Date: Mon, 12 Jan 2015 13:46:59 +0000
Subject: [PATCH] typo
---
blacklist.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blacklist.sh b/blacklist.sh
index 7667fec..1f1f96e 100755
--- a/blacklist.sh
+++ b/blacklist.sh
@@ -72,7 +72,7 @@ for url in $urls; do
headers=$(mktemp)
# download the blocklist
- set_name=$(echo "$url" | awk -F/ '{print substring($3,0,21);}') # set name is derived from source URL hostname
+ set_name=$(echo "$url" | awk -F/ '{print substr($3,0,21);}') # set name is derived from source URL hostname
curl -v -s ${COMPRESS_OPT} -k "$url" >"${unsorted_blocklist}" 2>"${headers}"
# this is required for blocklist.de that sends compressed content if asked for it or not