Skip to content

Commit fc43727

Browse files
author
David Kline
authored
Merge pull request #2819 from StephenHodgson/vNEXT-RelativePathFix
MRTK relative folder matching fix.
2 parents 606f336 + 5af01c4 commit fc43727

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Assets/MixedRealityToolkit/_Core/Utilities/Editor/Setup/EnforceEditorSettings.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ private static bool FindDirectory(string directoryPathToSearch, string directory
174174

175175
for (int i = 0; i < directories.Length; i++)
176176
{
177-
if (directories[i].Contains(directoryName))
177+
var name = Path.GetFileName(directories[i]);
178+
179+
if (name != null && name.Equals(directoryName))
178180
{
179181
path = directories[i];
180182
return true;

0 commit comments

Comments
 (0)