From 1ca0848e8bff847f3119d12b3c400edfbe3d8788 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Mon, 21 Nov 2022 15:36:13 -0700 Subject: [PATCH] fix up expressions to detect epel --- func/runtests.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/func/runtests.sh b/func/runtests.sh index 552f108..73f870b 100644 --- a/func/runtests.sh +++ b/func/runtests.sh @@ -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