Files
runner-images/images/win/scripts/Installers/Validate-Zstd.ps1
2020-02-18 13:04:58 +09:00

25 lines
616 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]
$Description = @"
_Version:_ $zstdVersion<br/>
"@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description