fix Get-BinarySizes.ps1 to handle new OsVMImage names for Ubuntu (#4562)

This commit is contained in:
Konrad Jamrozik 2023-04-20 10:28:43 -07:00 committed by GitHub
parent 6255145031
commit 00b38d6b9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"
}