Skip to content

Commit 531fdae

Browse files
Simplified search paths
1 parent 1cff3ea commit 531fdae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,8 +1101,7 @@ function Get-UnitySetupInstance {
11011101
}
11021102
}
11031103

1104-
$searchPaths = Get-ChildItem $BasePath | Get-ChildItem | ForEach-Object { $_.Directory.FullName }
1105-
$searchPaths = $searchPaths | Select-Object -uniq
1104+
$searchPaths = Get-ChildItem $BasePath -Directory
11061105
$setupInstances = [UnitySetupInstance[]]@()
11071106

11081107
foreach ( $path in $searchPaths ) {

0 commit comments

Comments
 (0)