[Ubuntu] Add systemd version to software report (#7387)

This commit is contained in:
sergei-pyshnoi
2023-04-04 17:52:40 +02:00
committed by GitHub
parent e72606ffb6
commit 9e3bbcb5e1
2 changed files with 7 additions and 0 deletions

View File

@@ -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
}