mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Ubuntu] fix VersionPattern for Clang v15 (#8575)
Co-authored-by: Alexey Ayupov <“alexey.ayupov@akvelon.com”>
This commit is contained in:
@@ -30,7 +30,7 @@ function Get-ClangToolVersions {
|
||||
[Parameter(Mandatory = $true)]
|
||||
[string] $ToolName,
|
||||
[string] $VersionLineMatcher = "${ToolName} version",
|
||||
[string] $VersionPattern = "\d+\.\d+\.\d+)-"
|
||||
[string] $VersionPattern = "\d+\.\d+\.\d+)"
|
||||
)
|
||||
|
||||
$result = Get-CommandResult "apt list --installed" -Multiline
|
||||
@@ -355,4 +355,4 @@ function Get-SystemdVersion {
|
||||
$matches = [regex]::Matches((systemctl --version | head -n 1), "\((.*?)\)")
|
||||
$result = foreach ($match in $matches) {$match.Groups[1].Value}
|
||||
return $result
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user