Merge pull request #2427 from leonghui/fix_has_curlssl_typo

luci-app-ddns: fix typo for has_curlssl()
This commit is contained in:
Dirk Brenken 2019-01-05 22:23:41 +01:00 committed by GitHub
commit c22e5232f4
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 -qF "https"]] ) == 0)
end
local function has_fetch()