From 7993ee591358052f1dd23c6135281e24b80b572f Mon Sep 17 00:00:00 2001 From: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com> Date: Mon, 15 Apr 2024 18:01:52 +0200 Subject: [PATCH] [Ubuntu] Add Numbat (24.04) helper functions (#9690) --- images/ubuntu/scripts/helpers/Common.Helpers.psm1 | 4 ++++ images/ubuntu/scripts/helpers/os.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/images/ubuntu/scripts/helpers/Common.Helpers.psm1 b/images/ubuntu/scripts/helpers/Common.Helpers.psm1 index 1f7403452..75dcdb745 100644 --- a/images/ubuntu/scripts/helpers/Common.Helpers.psm1 +++ b/images/ubuntu/scripts/helpers/Common.Helpers.psm1 @@ -62,6 +62,10 @@ function Test-IsUbuntu22 { return (lsb_release -rs) -eq "22.04" } +function Test-IsUbuntu24 { + return (lsb_release -rs) -eq "24.04" +} + function Get-ToolsetContent { <# .SYNOPSIS diff --git a/images/ubuntu/scripts/helpers/os.sh b/images/ubuntu/scripts/helpers/os.sh index 09a2213c2..1de83691b 100644 --- a/images/ubuntu/scripts/helpers/os.sh +++ b/images/ubuntu/scripts/helpers/os.sh @@ -11,3 +11,7 @@ is_ubuntu20() { is_ubuntu22() { lsb_release -d | grep -q 'Ubuntu 22' } + +is_ubuntu24() { + lsb_release -d | grep -q 'Ubuntu 24' +} \ No newline at end of file