+2
-3
@@ -414,7 +414,7 @@ gravity_DownloadBlocklists() {
|
|||||||
echo -e " ${INFO} Storing gravity database in ${COL_BOLD}${gravityDBfile}${COL_NC}"
|
echo -e " ${INFO} Storing gravity database in ${COL_BOLD}${gravityDBfile}${COL_NC}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local url domain str target compression adlist_type directory curlVersion success
|
local url domain str target compression adlist_type directory success
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# Prepare new gravity database
|
# Prepare new gravity database
|
||||||
@@ -498,8 +498,7 @@ gravity_DownloadBlocklists() {
|
|||||||
# Use compression to reduce the amount of data that is transferred
|
# Use compression to reduce the amount of data that is transferred
|
||||||
# between the Pi-hole and the ad list provider. Use this feature
|
# between the Pi-hole and the ad list provider. Use this feature
|
||||||
# only if it is supported by the locally available version of curl
|
# only if it is supported by the locally available version of curl
|
||||||
curlVersion=$(curl -V)
|
if curl -V | grep -q "Features:.* libz"; then
|
||||||
if echo "${curlVersion}" | grep -q "Features:.* libz"; then
|
|
||||||
compression="--compressed"
|
compression="--compressed"
|
||||||
echo -e " ${INFO} Using libz compression\n"
|
echo -e " ${INFO} Using libz compression\n"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user