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 {