This commit is contained in:
Pawel Krawczyk 2015-01-09 13:01:48 +00:00
parent bb1c726836
commit 831330ef85

View File

@ -76,7 +76,7 @@ for url in $urls; do
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
if grep -qi 'content-encoding: gzip' ${headers }; then
if grep -qi 'content-encoding: gzip' "${headers}"; then
mv "${unsorted_blocklist}" "${unsorted_blocklist}.gz"
gzip -d "${unsorted_blocklist}"
fi