mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2025-01-23 20:18:13 +03:00
@kasthack fix war links
This commit is contained in:
parent
6e1ff20dfe
commit
a8698073ed
@ -23,7 +23,7 @@
|
||||
{
|
||||
var jsonData = File.ReadAllText(json.FullName)["downloads(".Length..^1];
|
||||
var items = JsonSerializer.Deserialize<ResponseItem[]>(jsonData, new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
|
||||
foreach (var item in items.Where(a=>a.ZipUrl.ToString().EndsWith(archiveType)))
|
||||
foreach (var item in items.Where(a=>a.ZipUrl.ToString().EndsWith(archiveType) && !a.ZipUrl .ToString().Contains("-war")))
|
||||
{
|
||||
var majorVersion = item.Version.Split(".").First();
|
||||
var templatePath = Path.Combine(workdir.FullName, product, "templates", majorVersion);
|
||||
|
Loading…
x
Reference in New Issue
Block a user