From 18f3bffccd85a4d5d09bc8fa72bc95acf313e838 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 12 Mar 2025 12:10:56 -0700 Subject: [PATCH] Fix issue with excludepaths in get-prpkgproperties (#6462) Co-authored-by: Scott Beddall --- eng/common/scripts/Package-Properties.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/scripts/Package-Properties.ps1 b/eng/common/scripts/Package-Properties.ps1 index f8daf09c2..7b9bd0b5f 100644 --- a/eng/common/scripts/Package-Properties.ps1 +++ b/eng/common/scripts/Package-Properties.ps1 @@ -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 }