From 4849f3cd40912918eb9e836f0e9a62b37af6d2c0 Mon Sep 17 00:00:00 2001 From: exploide Date: Sat, 27 May 2023 13:30:59 +0200 Subject: [PATCH] fixed rhel distro detection --- lse.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lse.sh b/lse.sh index 316836b..b9a4a47 100755 --- a/lse.sh +++ b/lse.sh @@ -611,6 +611,7 @@ lse_get_distro_codename() { #( elif [ -f /etc/os-release ]; then distro=`grep -E '^ID=' /etc/os-release | cut -f2 -d=` echo "$distro" | grep -qi opensuse && distro=opsuse + echo "$distro" | grep -qi rhel && distro=redhat elif [ -f /etc/redhat-release ]; then grep -qi "centos" /etc/redhat-release && distro=centos grep -qi "fedora" /etc/redhat-release && distro=fedora