Ubuntu support addded to std::get_os_release()

This commit is contained in:
2020-10-27 09:36:17 +01:00
parent be11706043
commit a48990574c
+3
View File
@@ -289,6 +289,9 @@ std.get_os_release_linux() {
RedHatEnterpriseServer | RedHatEnterprise | Scientific | rhel | centos | fedora )
echo "rhel${VERSION_ID%.*}"
;;
Ubuntu )
echo "Ubuntu${VERSION_ID%.*}"
;;
* )
echo "Unknown"
exit 1