[Ubuntu] Add Numbat (24.04) helper functions (#9690)

This commit is contained in:
Mikhail Koliada
2024-04-15 18:01:52 +02:00
committed by GitHub
parent 3b976c7acb
commit 7993ee5913
2 changed files with 8 additions and 0 deletions

View File

@@ -62,6 +62,10 @@ function Test-IsUbuntu22 {
return (lsb_release -rs) -eq "22.04" return (lsb_release -rs) -eq "22.04"
} }
function Test-IsUbuntu24 {
return (lsb_release -rs) -eq "24.04"
}
function Get-ToolsetContent { function Get-ToolsetContent {
<# <#
.SYNOPSIS .SYNOPSIS

View File

@@ -11,3 +11,7 @@ is_ubuntu20() {
is_ubuntu22() { is_ubuntu22() {
lsb_release -d | grep -q 'Ubuntu 22' lsb_release -d | grep -q 'Ubuntu 22'
} }
is_ubuntu24() {
lsb_release -d | grep -q 'Ubuntu 24'
}