mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Add zstd
This commit is contained in:
24
images/win/scripts/Installers/Validate-Zstd.ps1
Normal file
24
images/win/scripts/Installers/Validate-Zstd.ps1
Normal 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
|
||||
Reference in New Issue
Block a user