Skip to content

Commit

Permalink
Merge pull request #77 from exploide/detect-rhel
Browse files Browse the repository at this point in the history
Fixed RHEL distro detection
  • Loading branch information
diego-treitos authored Jun 14, 2023
2 parents 8a6e326 + 4849f3c commit 06836ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06836ae

Please sign in to comment.