Skip to content

Commit 5af01c4

Browse files
made sure to get the folder name only and make sure it exactly equals the folder name we're searching for.
1 parent 720d9c5 commit 5af01c4

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)