From fea7c2e6d1e82bc3c7af7dc5c32c9a067b9cc8a9 Mon Sep 17 00:00:00 2001 From: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com> Date: Fri, 10 Dec 2021 10:27:18 +0300 Subject: [PATCH] [Ubuntu] fix software report for mysql (#4699) --- .../linux/scripts/SoftwareReport/SoftwareReport.Databases.psm1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Databases.psm1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Databases.psm1 index f561a136..5cdfddc2 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Databases.psm1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Databases.psm1 @@ -17,6 +17,9 @@ function Get-SqliteVersion { function Get-MySQLVersion { $mySQLVersion = mysqld --version | Take-OutputPart -Part 2 + if (-not (Test-IsUbuntu20)) { + $mySQLVersion = $mySQLVersion | Take-OutputPart -Part 0 -Delimiter "-" + } return "MySQL $mySQLVersion" }