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.

Signed-off-by: Leong Hui Wong <wong.leonghui@gmail.com>
This commit is contained in:
leonghui 2019-01-05 10:38:25 +00:00 committed by GitHub
parent 66c2bbc279
commit 199d4b1d5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()