mirror of
https://github.com/aljazceru/btcpayserver-docker.git
synced 2026-01-06 04:44:50 +01:00
Remove not found fragment
This commit is contained in:
@@ -42,12 +42,13 @@ namespace DockerGenerator
|
||||
var serializer = new SerializerBuilder().Build();
|
||||
|
||||
Console.WriteLine($"With fragments:");
|
||||
foreach (var fragment in Fragments)
|
||||
foreach (var fragment in Fragments.ToList())
|
||||
{
|
||||
var fragmentPath = GetFragmentLocation(fragment);
|
||||
if (!File.Exists(fragmentPath))
|
||||
{
|
||||
Console.WriteLine($"\t{fragment} not found in {fragmentPath}, ignoring...");
|
||||
Fragments.Remove(fragment);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user