Files
runner-images-sangeeth/images/win/scripts/Installers/Validate-Mercurial.ps1
Mikhail Timofeev 531fe345a2 Fix bazelisk and mercurial output in readme (#518)
* fix output

* fix bazelisk output on ubuntu
2020-03-08 12:28:50 +03:00

26 lines
689 B
PowerShell

################################################################################
## File: Validate-Mercurial.ps1
## Desc: Validate Mercurial
################################################################################
if (Get-Command -Name 'hg')
{
Write-Host "Mercurial on path"
}
else
{
Write-Host 'Mercurial is not on path'
exit 1
}
# Adding description of the software to Markdown
$SoftwareName = "Mercurial"
$(hg --version).Split([System.Environment]::NewLine)[0] -match "\d+\.\d+"
$MercurialVersion = $matches[0]
$Description = @"
_Version:_ $MercurialVersion<br/>
"@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description