[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

@@ -182,7 +182,7 @@ function Get-NvmVersion {
function Get-PackerVersion {
# Packer 1.7.1 has a bug and outputs version to stderr instead of stdout https://github.com/hashicorp/packer/issues/10855
$result = (Get-CommandResult -Command "packer --version").Output
$result = (Get-CommandResult "packer --version").Output
$packerVersion = [regex]::matches($result, "(\d+.){2}\d+").Value
return "Packer $packerVersion"
}