Files
runner-images/images/win/scripts/Installers/Validate-Zstd.ps1
T

25 lines
629 B
PowerShell
Raw Normal View History

2020-02-17 09:01:43 +09:00
################################################################################
## 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"
2020-03-06 11:03:01 +03:00
$zstdVersion = $(zstd --version).Split(' ')[6].Split(',')[0].Substring(1)
2020-02-17 09:01:43 +09:00
$Description = @"
_Version:_ $zstdVersion<br/>
"@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description