diff --git a/ConfigLoader.ps1 b/ConfigLoader.ps1 index 3dfbb76..eacd657 100644 --- a/ConfigLoader.ps1 +++ b/ConfigLoader.ps1 @@ -255,7 +255,7 @@ if ($MyInvocation.InvocationName -ne '.') { foreach ($spec in $specs) { Write-Host "`n=== Updating $($spec.Name) ===" -ForegroundColor Magenta - $targets = Get-ChildItem -LiteralPath $resolvedProject -Recurse -Filter $spec.Name -File -ErrorAction SilentlyContinue + $targets = Get-ChildItem -LiteralPath $resolvedProject -Recurse -Filter $spec.Name -File -Force -ErrorAction SilentlyContinue $targets = $targets | Where-Object { $_.FullName -ne $spec.Source } if (-not $targets) {