ddns-scripts: make WGET_SSL executable
[feed/packages.git] / net / ddns-scripts / files / usr / lib / ddns / dynamic_dns_functions.sh
index 141547f306ea46493df8eb9e935e4bb8ac62bd23..5facd8bed540b39771eab53e875a825e6aa9e117 100644 (file)
@@ -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