mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Inital commit.
This commit is contained in:
27
images/win/scripts/Installers/Validate-MysqlCli.ps1
Normal file
27
images/win/scripts/Installers/Validate-MysqlCli.ps1
Normal file
@@ -0,0 +1,27 @@
|
||||
################################################################################
|
||||
## 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
|
||||
Reference in New Issue
Block a user