From 7162be18e2585dfd14db65f2275d2bd6a1379af6 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 2 Feb 2025 20:57:13 +0100 Subject: [PATCH] Remove curl -V temp variable Signed-off-by: DL6ER --- gravity.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gravity.sh b/gravity.sh index f6d09ac5..c01b2823 100755 --- a/gravity.sh +++ b/gravity.sh @@ -414,7 +414,7 @@ gravity_DownloadBlocklists() { echo -e " ${INFO} Storing gravity database in ${COL_BOLD}${gravityDBfile}${COL_NC}" fi - local url domain str target compression adlist_type directory curlVersion success + local url domain str target compression adlist_type directory success echo "" # Prepare new gravity database @@ -498,8 +498,7 @@ gravity_DownloadBlocklists() { # Use compression to reduce the amount of data that is transferred # between the Pi-hole and the ad list provider. Use this feature # only if it is supported by the locally available version of curl - curlVersion=$(curl -V) - if echo "${curlVersion}" | grep -q "Features:.* libz"; then + if curl -V | grep -q "Features:.* libz"; then compression="--compressed" echo -e " ${INFO} Using libz compression\n" else