mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-13 21:36:46 +00:00
28 lines
678 B
PowerShell
28 lines
678 B
PowerShell
################################################################################
|
|
## File: Validate-MysqlCli.ps1
|
|
## Desc: Validate Mysql Cli
|
|
################################################################################
|
|
|
|
$command = Get-Command -Name 'mysql'
|
|
if($command)
|
|
{
|
|
Write-Host "Mysql is on path"
|
|
}
|
|
else
|
|
{
|
|
Write-Host 'Mysql not on path'
|
|
exit 1
|
|
}
|
|
|
|
# Adding description of the software to Markdown
|
|
$SoftwareName = "Mysql"
|
|
$version = $command.Version.ToString();
|
|
|
|
$Description = @"
|
|
_Version:_ $version<br/>
|
|
_Environment:_
|
|
* PATH: contains location of mysql.exe
|
|
"@
|
|
|
|
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|