Skip to content

Commit b0e3bdb

Browse files
azure-sdksima-zhu
andauthored
Update the regex to embrace more image names (Azure#24229)
Co-authored-by: sima-zhu <[email protected]>
1 parent 5baaf57 commit b0e3bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/common/scripts/Verify-AgentOS.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function Throw-InvalidOperatingSystem {
88
throw "Invalid operating system detected. Operating system was: $([System.Runtime.InteropServices.RuntimeInformation]::OSDescription), expected image was: $AgentImage"
99
}
1010

11-
if ($IsWindows -and $AgentImage -match "windows|win|MMS2019") {
11+
if ($IsWindows -and $AgentImage -match "windows|win|MMS\d{4}") {
1212
$osName = "Windows"
1313
} elseif ($IsLinux -and $AgentImage -match "ubuntu") {
1414
$osName = "Linux"

0 commit comments

Comments
 (0)