Skip to content

Commit b2daa82

Browse files
committed
Fix bugs with args
1 parent 1bbd905 commit b2daa82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,9 @@ function Start-UnityEditor
695695
continue
696696
}
697697

698-
$unityArgs = $sharedArgs + $instanceArgs[$i]
698+
# clone the shared args list
699+
$unityArgs = $sharedArgs | ForEach-Object { $_ }
700+
if( $instanceArgs[$i] ) { $unityArgs += $instanceArgs[$i] }
699701
$setProcessArgs = @{
700702
'FilePath' = $editor;
701703
'PassThru' = $true;

0 commit comments

Comments
 (0)