Skip to content

Commit c61646a

Browse files
scbeddazure-sdk
authored andcommitted
resolve the path always
1 parent fcbb6f3 commit c61646a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eng/common/scripts/Package-Properties.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,12 @@ function Get-PrPkgProperties([string]$InputDiffJson) {
114114

115115
foreach($pkg in $allPackageProperties)
116116
{
117+
$pkgDirectory = Resolve-Path "$($pkg.DirectoryPath)"
118+
117119
foreach($file in $targetedFiles)
118120
{
119121
$filePath = Resolve-Path (Join-Path $RepoRoot $file)
120-
$shouldInclude = $filePath -like "$($pkg.DirectoryPath)*"
122+
$shouldInclude = $filePath -like "$pkgDirectory*"
121123
if ($shouldInclude) {
122124
$packagesWithChanges += $pkg
123125
}

0 commit comments

Comments
 (0)