[Ubuntu] Add verbosity during software report generation (#4811)

* Add verbosity during software report generation

* Fix Get-CpanVersion

* set default ValidateExitCode value to $true

* update java test

* use lower-case for parameters
This commit is contained in:
Aleksandr Chebotov
2021-12-28 11:16:20 +03:00
committed by GitHub
parent bb56fb7ef4
commit 92eeb55189
8 changed files with 107 additions and 44 deletions

View File

@@ -140,7 +140,7 @@ function Get-HomebrewVersion {
}
function Get-CpanVersion {
$result = Get-CommandResult "cpan --version"
$result = Get-CommandResult "cpan --version" -ExpectExitCode @(25, 255)
$result.Output -match "version (?<version>\d+\.\d+) " | Out-Null
$cpanVersion = $Matches.version
return "cpan $cpanVersion"