[macOS] do not list Xcode-install in sw report on OS13 (#8370)

This commit is contained in:
Mikhail Koliada
2023-09-24 13:11:11 +02:00
committed by GitHub
parent e72f9755c3
commit 37b6325815

View File

@@ -236,7 +236,9 @@ function Build-XcodeSupportToolsSection {
$xcversion = Run-Command "xcversion --version" | Select-String "^[0-9]"
$toolNodes += [ToolVersionNode]::new("xcpretty", $xcpretty)
$toolNodes += [ToolVersionNode]::new("xcversion", $xcversion)
if ($os.IsBigSur -or $os.IsMonterey) {
$toolNodes += [ToolVersionNode]::new("xcversion", $xcversion)
}
$nomadOutput = Run-Command "gem list nomad-cli"
$nomadCLI = [regex]::matches($nomadOutput, "(\d+.){2}\d+").Value