From 7d596c72168f189a1db0a6f4881063ccc087310c Mon Sep 17 00:00:00 2001 From: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com> Date: Sun, 15 Jan 2023 20:11:33 +0100 Subject: [PATCH] [Ubuntu] fix ghcup version in software report (#6919) --- 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 5bd7fd89b..46e9a4500 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 @@ -241,7 +241,7 @@ function Get-GHCVersion { } function Get-GHCupVersion { - $(ghcup --version) -match "version v(?\d+(\.\d+){2,})" | Out-Null + $(ghcup --version) -match "version (?\d+(\.\d+){2,})" | Out-Null return $Matches.version }