From 7513528c60934da03e87e0cfddc65defd8fa46db Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 12 Sep 2009 08:13:44 +0200 Subject: [PATCH] Try to distinguish CentOS/RHEL --- regress/scripts/get-os | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/regress/scripts/get-os b/regress/scripts/get-os index 8143a6cd8d..2a1cfed656 100755 --- a/regress/scripts/get-os +++ b/regress/scripts/get-os @@ -385,7 +385,7 @@ then DISTNAME=redhat elif test -f /etc/redhat-release then - if test `grep CentOs /etc/redhat-release` + if test `grep CentOS /etc/redhat-release` then DISTNAME=redhat else @@ -468,8 +468,7 @@ redhat) fi if test `cat $f | grep release |\ cut -f 3 -d ' '`x = "Enterprise"x ; then - DISTVER="Enterprise "`cat $f | grep release |\ - cut -f 6 -d ' '` + DISTVER="RHEL "`cat $f | grep release | cut -f 6 -d ' '` else DISTVER=`cat /etc/redhat-release | grep release |\ cut -f 5 -d ' '` -- 2.39.5