We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4983dab + b3040ed commit aa70e5eCopy full SHA for aa70e5e
UnitySetup/UnitySetup.psm1
@@ -1296,11 +1296,17 @@ function Select-UnitySetupInstance {
1296
[UnitySetupInstance[]] $Instances
1297
)
1298
1299
+ begin {
1300
+ if ( $Path ) {
1301
+ $pathInfo = Resolve-Path $Path -ErrorAction Ignore
1302
+ }
1303
1304
+
1305
process {
- if ( $PSBoundParameters.ContainsKey('Path') ) {
- $Path = $Path.TrimEnd([io.path]::DirectorySeparatorChar)
1306
+ if ( $pathInfo ) {
1307
$Instances = $Instances | Where-Object {
- $Path -eq (Get-Item $_.Path).FullName.TrimEnd([io.path]::DirectorySeparatorChar)
1308
+ $instancePathInfo = Resolve-Path $_.Path -ErrorAction Ignore
1309
+ return $pathInfo.Path -eq $instancePathInfo.Path
1310
}
1311
1312
0 commit comments