From 0e4f2b1068c46625d2a6c8151ca327eaad01b687 Mon Sep 17 00:00:00 2001 From: Edi Turn Date: Wed, 27 Jan 2021 20:40:03 +0800 Subject: ddns-scripts: make WGET_SSL executable Signed-off-by: Edi Turn --- net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'net/ddns-scripts/files') diff --git a/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh b/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh index 141547f30..5facd8bed 100644 --- a/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh +++ b/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh @@ -85,8 +85,7 @@ NSLOOKUP=$(command -v nslookup) # Transfer Programs WGET=$(command -v wget) -# SSL support is available if WGET_SSL is not empty -WGET_SSL=$("$WGET" -V 2>/dev/null | grep -F +https) +$WGET -V 2>/dev/null | grep -F -q +https && WGET_SSL=$WGET CURL=$(command -v curl) # CURL_SSL not empty then SSL support available -- cgit v1.2.3