From c1a9cb6de68532aa7adb4824e3635d405d6441ac Mon Sep 17 00:00:00 2001 From: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com> Date: Fri, 17 Feb 2023 16:37:46 +0100 Subject: [PATCH] [Ubuntu] fix PHP software report (#7131) --- images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 index 46e9a4500..3f5badf54 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 @@ -220,7 +220,7 @@ function Get-SbtVersion { function Get-PHPVersions { $result = Get-CommandResult "apt list --installed" -Multiline return $result.Output | Where-Object { $_ -match "^php\d+\.\d+/"} | ForEach-Object { - $_ -match "now (\d+:)?(?\d+\.\d+\.\d+)-" | Out-Null + $_ -match "now (\d+:)?(?\d+\.\d+\.\d+)" | Out-Null $Matches.version } }