File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -1141,19 +1141,18 @@ function Get-UnitySetupInstance {
1141
1141
}
1142
1142
}
1143
1143
1144
-
1145
- $BasePath | Where-Object { Test-Path $_ - PathType Container } |
1146
- Get-ChildItem - Directory | Where-Object { (Get-UnityEditor $_.FullName ).Count -gt 0 } |
1144
+ Get-ChildItem - Path $BasePath - Directory - ErrorAction Ignore |
1145
+ Where-Object { (Get-UnityEditor $_.FullName ).Count -gt 0 } |
1147
1146
ForEach-Object {
1148
- $path = $_.FullName
1149
- try {
1150
- Write-Verbose " Creating UnitySetupInstance for $path "
1151
- [UnitySetupInstance ]::new($path )
1152
- }
1153
- catch {
1154
- Write-Warning " $_ "
1147
+ $path = $_.FullName
1148
+ try {
1149
+ Write-Verbose " Creating UnitySetupInstance for $path "
1150
+ [UnitySetupInstance ]::new($path )
1151
+ }
1152
+ catch {
1153
+ Write-Warning " $_ "
1154
+ }
1155
1155
}
1156
- }
1157
1156
}
1158
1157
1159
1158
<#
You can’t perform that action at this time.
0 commit comments