libstd.bash: fix in std.get_os_release_linux() for current CentOS

This commit is contained in:
2021-07-20 15:54:21 +02:00
parent 54817c70f5
commit 4f625ed86b
+2 -2
View File
@@ -220,8 +220,8 @@ std.get_os_release_linux() {
fi
case "${ID}" in
RedHatEnterpriseServer | RedHatEnterprise | Scientific | rhel | centos | fedora )
echo "rhel${VERSION_ID%.*}"
RedHatEnterpriseServer | RedHatEnterprise | Scientific | rhel | centos | CentOS | fedora )
echo "rhel${VERSION_ID%%.*}"
;;
Ubuntu )
echo "Ubuntu${VERSION_ID%.*}"