[ubuntu] Refactor bash functions (#9055)

This commit is contained in:
Shamil Mubarakshin
2023-12-26 12:50:52 +01:00
committed by GitHub
parent d16bc5f120
commit 503ae89818
38 changed files with 191 additions and 224 deletions

View File

@@ -4,17 +4,14 @@
## Desc: Helper functions for OS releases
################################################################################
function isUbuntu20
{
is_ubuntu20() {
lsb_release -d | grep -q 'Ubuntu 20'
}
function isUbuntu22
{
is_ubuntu22() {
lsb_release -d | grep -q 'Ubuntu 22'
}
function getOSVersionLabel
{
get_os_version_label() {
lsb_release -cs
}