Skip to content

Commit db7cc20

Browse files
committed
fix ending bug
1 parent 3c2c93a commit db7cc20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tracer/build/_build/UpdateVendors/UpdateVendors.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ private static bool MatchesPath(string relativeTargetPath, string basePath, stri
128128
var fullTargetPath = Path.GetFullPath(Path.Combine(basePath, normalizedRelativePath));
129129

130130
return string.Equals(normalizedFilePath, fullTargetPath, StringComparison.OrdinalIgnoreCase)
131-
|| normalizedFilePath.StartsWith(fullTargetPath + Path.DirectorySeparatorChar, StringComparison.OrdinalIgnoreCase);
131+
|| normalizedFilePath.StartsWith(
132+
fullTargetPath.EndsWith(Path.DirectorySeparatorChar) ? fullTargetPath : fullTargetPath + Path.DirectorySeparatorChar,
133+
StringComparison.OrdinalIgnoreCase);
132134
}
133135

134136
private static void SafeDeleteDirectory(string directoryPath)

0 commit comments

Comments
 (0)