Update the regex to embrace more image names (#4190)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
This commit is contained in:
parent
111776e6af
commit
ceeda9c7b4
@ -8,7 +8,7 @@ function Throw-InvalidOperatingSystem {
|
||||
throw "Invalid operating system detected. Operating system was: $([System.Runtime.InteropServices.RuntimeInformation]::OSDescription), expected image was: $AgentImage"
|
||||
}
|
||||
|
||||
if ($IsWindows -and $AgentImage -match "windows|win|MMS2019") {
|
||||
if ($IsWindows -and $AgentImage -match "windows|win|MMS\d{4}") {
|
||||
$osName = "Windows"
|
||||
} elseif ($IsLinux -and $AgentImage -match "ubuntu") {
|
||||
$osName = "Linux"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user