From 00b38d6b9fc4798ddccdd79b37319bc729aadfcc Mon Sep 17 00:00:00 2001 From: Konrad Jamrozik Date: Thu, 20 Apr 2023 10:28:43 -0700 Subject: [PATCH] fix Get-BinarySizes.ps1 to handle new OsVMImage names for Ubuntu (#4562) --- eng/scripts/Get-BinarySizes.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/scripts/Get-BinarySizes.ps1 b/eng/scripts/Get-BinarySizes.ps1 index 867a0d1c2..7c9ef583d 100644 --- a/eng/scripts/Get-BinarySizes.ps1 +++ b/eng/scripts/Get-BinarySizes.ps1 @@ -56,15 +56,15 @@ function getTargetOs { return "win-2022" } - if ($OsVMImage -eq "MMSUbuntu18.04") { + if ($OsVMImage -in "MMSUbuntu18.04", "ubuntu-18.04") { return "ubuntu-18.04" } - if ($OsVMImage -eq "MMSUbuntu20.04") { + if ($OsVMImage -in "MMSUbuntu20.04", "ubuntu-20.04") { return "ubuntu-20.04" } - if ($OsVMImage -eq "MMSUbuntu22.04") { + if ($OsVMImage -in "MMSUbuntu22.04", "ubuntu-22.04") { return "ubuntu-22.04" }