From 5435d9a850f98115a09ca338e03fdd1e1f3b88f5 Mon Sep 17 00:00:00 2001 From: Mikhail Timofeev Date: Fri, 6 Mar 2020 11:03:01 +0300 Subject: [PATCH] add zstd to win19 --- images/win/Windows2019-Azure.json | 12 ++++++++++++ images/win/scripts/Installers/Validate-Zstd.ps1 | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/images/win/Windows2019-Azure.json b/images/win/Windows2019-Azure.json index c1dc9252d..378801dd1 100644 --- a/images/win/Windows2019-Azure.json +++ b/images/win/Windows2019-Azure.json @@ -497,6 +497,12 @@ "{{ template_dir }}/scripts/Installers/Install-Jq.ps1" ] }, + { + "type": "powershell", + "scripts":[ + "{{ template_dir }}/scripts/Installers/Install-Zstd.ps1" + ] + }, { "type": "powershell", "scripts":[ @@ -776,6 +782,12 @@ "{{ template_dir }}/scripts/Installers/Validate-Jq.ps1" ] }, + { + "type": "powershell", + "scripts":[ + "{{ template_dir }}/scripts/Installers/Validate-Zstd.ps1" + ] + }, { "type": "powershell", "scripts":[ diff --git a/images/win/scripts/Installers/Validate-Zstd.ps1 b/images/win/scripts/Installers/Validate-Zstd.ps1 index 18f3a3343..afb6a030f 100644 --- a/images/win/scripts/Installers/Validate-Zstd.ps1 +++ b/images/win/scripts/Installers/Validate-Zstd.ps1 @@ -15,7 +15,7 @@ else # Adding description of the software to Markdown $SoftwareName = "zstd" -$zstdVersion = $(zstd --version).Split(' ')[6].Split(',')[0] +$zstdVersion = $(zstd --version).Split(' ')[6].Split(',')[0].Substring(1) $Description = @" _Version:_ $zstdVersion