Files
runner-images-sangeeth/images/win/scripts/Installers/Validate-Zstd.ps1
Mikhail Timofeev 5435d9a850 add zstd to win19
2020-03-06 11:03:01 +03:00

25 lines
629 B
PowerShell

################################################################################
## File: Validate-zstd.ps1
## Desc: Validate zstd
################################################################################
if (Get-Command -Name 'zstd')
{
Write-Host "zstd on path"
}
else
{
Write-Host 'zstd is not on path'
exit 1
}
# Adding description of the software to Markdown
$SoftwareName = "zstd"
$zstdVersion = $(zstd --version).Split(' ')[6].Split(',')[0].Substring(1)
$Description = @"
_Version:_ $zstdVersion<br/>
"@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description