[Ubuntu] fix VersionPattern for Clang v15 (#8575)

Co-authored-by: Alexey Ayupov <“alexey.ayupov@akvelon.com”>
This commit is contained in:
Alexey-Ayupov
2023-10-18 15:46:20 +02:00
committed by GitHub
parent aaa37dfbbd
commit 29ce1c3a2b

View File

@@ -30,7 +30,7 @@ function Get-ClangToolVersions {
[Parameter(Mandatory = $true)] [Parameter(Mandatory = $true)]
[string] $ToolName, [string] $ToolName,
[string] $VersionLineMatcher = "${ToolName} version", [string] $VersionLineMatcher = "${ToolName} version",
[string] $VersionPattern = "\d+\.\d+\.\d+)-" [string] $VersionPattern = "\d+\.\d+\.\d+)"
) )
$result = Get-CommandResult "apt list --installed" -Multiline $result = Get-CommandResult "apt list --installed" -Multiline
@@ -355,4 +355,4 @@ function Get-SystemdVersion {
$matches = [regex]::Matches((systemctl --version | head -n 1), "\((.*?)\)") $matches = [regex]::Matches((systemctl --version | head -n 1), "\((.*?)\)")
$result = foreach ($match in $matches) {$match.Groups[1].Value} $result = foreach ($match in $matches) {$match.Groups[1].Value}
return $result return $result
} }