From: leonghui Date: Sat, 5 Jan 2019 10:38:25 +0000 (+0000) Subject: luci-app-ddns: fix typo for has_curlssl() X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=69d17199e86a73e0cf51da1a6a2d679c5c365d44;p=oweals%2Fluci.git luci-app-ddns: fix typo for has_curlssl() Fixes the incorrect message "HTTPS not supported please disable !" when curl with https support is present. grep returns exit code 0 when a match is found. This cherry-picks commit 199d4b1d5c45111919ac5c1844ee5e37d14273a1 Signed-off-by: Leong Hui Wong Signed-off-by: Chuck --- diff --git a/applications/luci-app-ddns/luasrc/tools/ddns.lua b/applications/luci-app-ddns/luasrc/tools/ddns.lua index 6f0c7f095..07439acf2 100755 --- a/applications/luci-app-ddns/luasrc/tools/ddns.lua +++ b/applications/luci-app-ddns/luasrc/tools/ddns.lua @@ -21,7 +21,7 @@ function env_info(type) end local function has_curlssl() - return (SYS.call( [[$(which curl) -V 2>&1 | grep "Protocols:" | grep -qF "https"]] ) ~= 0) + return (SYS.call( [[$(which curl) -V 2>&1 | grep "Protocols:" | grep -qF "https"]] ) == 0) end local function has_fetch()