From 5d8da1661b3fcb5325ea6d65154ceb4e57ed7b71 Mon Sep 17 00:00:00 2001 From: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com> Date: Sun, 11 Oct 2020 23:28:16 +0300 Subject: [PATCH] switch to Get-CommandResult (#1785) --- images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 index 60988b461..f45496638 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 @@ -248,5 +248,6 @@ function Get-AptPackages { } function Get-PipxVersion { - return "Pipx $(pipx --version 2> $null)" + $result = (Get-CommandResult "pipx --version").Output + return "Pipx $result" } \ No newline at end of file