Fix issue with excludepaths in get-prpkgproperties (#6462)

Co-authored-by: Scott Beddall <scbedd@microsoft.com>
This commit is contained in:
Azure SDK Bot 2025-03-12 12:10:56 -07:00 committed by GitHub
parent 22a08bc969
commit 18f3bffccd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -266,7 +266,7 @@ function Update-TargetedFilesForExclude([string[]]$TargetedFiles, [string[]]$Exc
foreach ($file in $TargetedFiles) {
$shouldExclude = $false
foreach ($exclude in $ExcludePaths) {
if (!$file.StartsWith($exclude,'CurrentCultureIgnoreCase')) {
if ($file.StartsWith($exclude,'CurrentCultureIgnoreCase')) {
$shouldExclude = $true
break
}