Files
runner-images-sangeeth/images/win/scripts/Installers/Validate-GitVersion.ps1

26 lines
646 B
PowerShell

################################################################################
## File: Validate-GitVersion.ps1
## Desc: Validate GitVersion
################################################################################
$command = Get-Command -Name 'gitversion'
if ($command)
{
Write-Host "gitversion on path"
}
else
{
Write-Host 'gitversion is not on path'
exit 1
}
# Adding description of the software to Markdown
$SoftwareName = "GitVersion"
$version = $command.Version.ToString()
$Description = @"
_Version:_ $version<br/>
"@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description