mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-25 06:05:37 +03:00
Update Program.cs
Update validation condition
This commit is contained in:
parent
c78306518d
commit
ae6da28899
@ -23,7 +23,7 @@
|
|||||||
{
|
{
|
||||||
var jsonData = File.ReadAllText(json.FullName)["downloads(".Length..^1];
|
var jsonData = File.ReadAllText(json.FullName)["downloads(".Length..^1];
|
||||||
var items = JsonSerializer.Deserialize<ResponseItem[]>(jsonData, new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
|
var items = JsonSerializer.Deserialize<ResponseItem[]>(jsonData, new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
|
||||||
foreach (var item in items.Where(a=>a.ZipUrl.ToString().EndsWith(archiveType) && !a.ZipUrl .ToString().Contains("-war")))
|
foreach (var item in items.Where(a=>a.ZipUrl != null && a.ZipUrl.ToString().EndsWith(archiveType) && !a.ZipUrl .ToString().Contains("-war")))
|
||||||
{
|
{
|
||||||
var majorVersion = item.Version.Split(".").First();
|
var majorVersion = item.Version.Split(".").First();
|
||||||
var templatePath = Path.Combine(workdir.FullName, product, "templates", majorVersion);
|
var templatePath = Path.Combine(workdir.FullName, product, "templates", majorVersion);
|
||||||
|
Loading…
Reference in New Issue
Block a user