fix up expressions to detect epel

This commit is contained in:
Louis Abel 2022-11-21 15:36:13 -07:00
parent f937f1380b
commit 1ca0848e8b
Signed by: label
GPG Key ID: B37E62D143879B36

View File

@ -30,8 +30,10 @@ if [ "$SELINUX" != "Enforcing" ]; then
exit 1
fi
is_epel=$(r_checkEPELEnabled)
if [ "$is_epel" -ne 0 ]; then
r_checkEPELEnabled
is_epel=$?
if [[ "$is_epel" == "0" ]]; then
echo "EPEL enabled. Stop."
r_log "internal" "EPEL enabled. Stop."
exit 1
fi