mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-15 14:26:48 +00:00
[Ubuntu] fix software report for mysql (#4699)
This commit is contained in:
@@ -17,6 +17,9 @@ function Get-SqliteVersion {
|
|||||||
|
|
||||||
function Get-MySQLVersion {
|
function Get-MySQLVersion {
|
||||||
$mySQLVersion = mysqld --version | Take-OutputPart -Part 2
|
$mySQLVersion = mysqld --version | Take-OutputPart -Part 2
|
||||||
|
if (-not (Test-IsUbuntu20)) {
|
||||||
|
$mySQLVersion = $mySQLVersion | Take-OutputPart -Part 0 -Delimiter "-"
|
||||||
|
}
|
||||||
return "MySQL $mySQLVersion"
|
return "MySQL $mySQLVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user