mirror of
https://github.com/pi-hole/pi-hole
synced 2025-02-10 15:12:42 +00:00
Remove curl -V temp variable
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
37718c65e9
commit
7162be18e2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user