install: tweak check_distro

Signed-off-by: nachoparker <nacho@ownyourbits.com>
This commit is contained in:
nachoparker 2019-10-06 14:01:15 -06:00
parent c63cb274e9
commit cb476b8fbd

View File

@ -65,7 +65,7 @@ function configure_app()
20 70 0 $parameters \
3>&1 1>&2 2>&3 )"
res=$?
case $res in
$DIALOG_CANCEL)
break
@ -273,7 +273,7 @@ function is_more_recent_than()
function check_distro()
{
local cfg="${1:-$NCPCFG}"
local supported=$(jq -r .release < "$cfg")
local supported=$(jq -r .release "$cfg")
grep -q "$supported" <(lsb_release -sc) && return 0
return 1
}