Merge branch '131-libstd-bash-fix-issue-with-current-centos-in-std-get_os_release' into 'master'

Resolve "libstd.bash: fix issue with current CentOS in std::get_os_release()"

Closes #131

See merge request Pmodules/src!100
This commit is contained in:
2021-07-20 15:55:29 +02:00
+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%.*}"