Fix issue with excludepaths in get-prpkgproperties (#6462)
Co-authored-by: Scott Beddall <scbedd@microsoft.com>
This commit is contained in:
parent
22a08bc969
commit
18f3bffccd
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user