diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 index ab680f739..90c98dcf4 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 @@ -91,6 +91,13 @@ function Get-HomebrewVersion { return "Homebrew $version" } +function Get-CpanVersion { + $result = Get-CommandResult "cpan --version" + $result.Output -match "version (?\d+\.\d+) " | Out-Null + $cpanVersion = $Matches.version + return "cpan $cpanVersion" +} + function Get-GemVersion { $result = Get-CommandResult "gem --version" $result.Output -match "(?\d+\.\d+\.\d+)" | Out-Null diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 index 406649526..5259a88f7 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 @@ -53,6 +53,7 @@ $markdown += New-MDHeader "Package Management" -Level 3 $packageManagementList = @( (Get-HomebrewVersion), + (Get-CpanVersion), (Get-GemVersion), (Get-MinicondaVersion), (Get-HelmVersion),