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" }