aboutsummaryrefslogtreecommitdiff
path: root/net/ddns-scripts/files
diff options
context:
space:
mode:
authorEdi Turn <yyxstter@gmail.com>2021-01-27 20:40:03 +0800
committerEdi Turn <yyxstter@gmail.com>2021-01-27 20:40:03 +0800
commit0e4f2b1068c46625d2a6c8151ca327eaad01b687 (patch)
treeea075d856751857323bd039c1e20ca7e3dd3728f /net/ddns-scripts/files
parentc0135a326c7663f20ccf35fbc20d58487c81e912 (diff)
ddns-scripts: make WGET_SSL executable
Signed-off-by: Edi Turn <yyxstter@gmail.com>
Diffstat (limited to 'net/ddns-scripts/files')
-rw-r--r--net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh3
1 files changed, 1 insertions, 2 deletions
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