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>
end
local function has_curlssl()
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()
end
local function has_fetch()