From a65bd14fa1b54df5300ef3364ec36c39c5bbe46a Mon Sep 17 00:00:00 2001 From: Erik Bershel <110455084+erik-bershel@users.noreply.github.com> Date: Thu, 23 Feb 2023 17:00:00 +0100 Subject: [PATCH] [ macOS ] Add pkg-config to report (#7176) --- images/macos/software-report/SoftwareReport.Common.psm1 | 5 +++++ images/macos/software-report/SoftwareReport.Generator.ps1 | 1 + 2 files changed, 6 insertions(+) diff --git a/images/macos/software-report/SoftwareReport.Common.psm1 b/images/macos/software-report/SoftwareReport.Common.psm1 index c8ce4bf8f..0cc3d1d80 100644 --- a/images/macos/software-report/SoftwareReport.Common.psm1 +++ b/images/macos/software-report/SoftwareReport.Common.psm1 @@ -645,3 +645,8 @@ function Get-ColimaVersion { $colimaVersion = Run-Command "colima version" | Select-String "colima version" | Take-Part -Part 2 return $colimaVersion } + +function Get-PKGConfigVersion { + $pkgconfigVersion = Run-Command "pkg-config --version" + return $pkgconfigVersion +} diff --git a/images/macos/software-report/SoftwareReport.Generator.ps1 b/images/macos/software-report/SoftwareReport.Generator.ps1 index 2db63d181..f3ff4d50e 100644 --- a/images/macos/software-report/SoftwareReport.Generator.ps1 +++ b/images/macos/software-report/SoftwareReport.Generator.ps1 @@ -107,6 +107,7 @@ if ($os.IsBigSur) { } $utilities.AddToolVersion("OpenSSL", $(Get-OpenSSLVersion)) $utilities.AddToolVersion("Packer", $(Get-PackerVersion)) +$utilities.AddToolVersion("pkg-config", $(Get-PKGConfigVersion)) $utilities.AddToolVersion("PostgreSQL", $(Get-PostgresServerVersion)) $utilities.AddToolVersion("psql (PostgreSQL)", $(Get-PostgresClientVersion)) $utilities.AddToolVersion("Sox", $(Get-SoxVersion))