mirror of
https://github.com/aljazceru/btcpayserver-docker.git
synced 2025-12-20 11:04:22 +01:00
Prevent dups in fragments
This commit is contained in:
@@ -31,7 +31,7 @@ namespace DockerGenerator
|
||||
fragmentLocation = FindRoot(fragmentLocation);
|
||||
fragmentLocation = Path.GetFullPath(Path.Combine(fragmentLocation, "docker-fragments"));
|
||||
|
||||
var fragments = new List<string>();
|
||||
var fragments = new HashSet<string>();
|
||||
switch (composition.SelectedProxy)
|
||||
{
|
||||
case "nginx":
|
||||
@@ -72,8 +72,7 @@ namespace DockerGenerator
|
||||
{
|
||||
fragments.Add(fragment.Trim());
|
||||
}
|
||||
|
||||
var def = new DockerComposeDefinition(name, fragments);
|
||||
var def = new DockerComposeDefinition(name, fragments.ToList());
|
||||
def.FragmentLocation = fragmentLocation;
|
||||
def.BuildOutputDirectory = output;
|
||||
def.Build();
|
||||
|
||||
Reference in New Issue
Block a user