mirror of
https://github.com/actions/runner-images.git
synced 2025-12-17 23:28:57 +00:00
[Ubuntu] Add systemd version to software report (#7387)
This commit is contained in:
@@ -371,3 +371,9 @@ function Build-PackageManagementEnvironmentTable {
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
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