mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 12:48:18 +00:00
[Ubuntu] Add Numbat (24.04) helper functions (#9690)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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'
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user