From 7ca91f59f7ab6869640edc84237c314e00847427 Mon Sep 17 00:00:00 2001 From: Carl George Date: Wed, 6 May 2020 09:30:47 -0500 Subject: [PATCH] Make check_rhel function compatible with CentOS The check_rhel function should return the same thing on CentOS as it does on RHEL. Currently CentOS applies this modification downstream. Now that CentOS is part of the Red Hat family, it would be ideal to push this modification upstream. --- dist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist.sh b/dist.sh index db6c053..23bb032 100755 --- a/dist.sh +++ b/dist.sh @@ -25,7 +25,7 @@ function check_rhl { } function check_rhel { - egrep -q "(Enterprise|Advanced)" $RELEASEFILE && echo $DISTNUM + egrep -q "(Enterprise|Advanced|CentOS)" $RELEASEFILE && echo $DISTNUM } function check_fedora {