Minor fix to Edit-DockerCompose

dcedit additional files would attempt even if not supplied
This commit is contained in:
lksz 2021-01-23 21:46:48 -05:00
parent 6549d8683d
commit 4318bfc7a8
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ foreach( $local:ext in @('.yml', '.yaml') ) {
}
}
$AdditionalFiles = $AdditionalFiles | ForEach-Object {
$AdditionalFiles = $AdditionalFiles | Where-Object { $_ } | ForEach-Object {
$_ -replace
'^#lsi$','#/*linuxserver.yml' -replace
'^#tr?$','#/*traefik.yml' -replace