From 137c29497d4b02e00551c45bc94e469bc90f12c0 Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Wed, 30 Mar 2022 20:28:46 +0200 Subject: [PATCH] [Windows] Fix composer output version (#5313) --- images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 b/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 index 7c3d879f..4960269d 100644 --- a/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 +++ b/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 @@ -158,9 +158,7 @@ function Get-CondaVersion { } function Get-ComposerVersion { - ($(composer --version)) -match "Composer version (?\d+\.\d+\.\d+)" | Out-Null - $composerVersion = $Matches.Version - return "Composer $composerVersion" + composer --version | Take-Part -Part 0,1 } function Get-NugetVersion {