Merge pull request #414 from imbsky/zstd

Add zstd
This commit is contained in:
Alejandro Pauly
2020-02-24 13:02:49 -05:00
committed by GitHub
5 changed files with 53 additions and 5 deletions

View File

@@ -0,0 +1,6 @@
################################################################################
## File: Install-zstd.ps1
## Desc: Install zstd
################################################################################
choco install zstandard -y

View File

@@ -0,0 +1,24 @@
################################################################################
## 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