Skip to content

Commit 2955994

Browse files
committed
fix the agentimage that we compare to on linux to allow our osname to pass through properly
1 parent 659bf71 commit 2955994

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
@@ -10,7 +10,7 @@ function Throw-InvalidOperatingSystem {
1010

1111
if ($IsWindows -and $AgentImage -match "windows|win|MMS\d{4}") {
1212
$osName = "Windows"
13-
} elseif ($IsLinux -and $AgentImage -match "ubuntu") {
13+
} elseif ($IsLinux -and $AgentImage -match "ubuntu|linux") {
1414
$osName = "Linux"
1515
} elseif ($IsMacOs -and $AgentImage -match "macos") {
1616
$osName = "macOS"

0 commit comments

Comments
 (0)