Skip to content

Commit 602fb72

Browse files
authored
Merge pull request #213 from jwittner/fix/additionalArgumentsMissingSpace
Fix issue with missing space in AdditionalArguments
2 parents 2ea10b8 + b9efda8 commit 602fb72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,7 +1788,7 @@ function Start-UnityEditor {
17881788
}
17891789
}
17901790

1791-
$sharedArgs = @()
1791+
[string[]]$sharedArgs = @()
17921792
if ( $ReturnLicense ) {
17931793
if ( -not $PSBoundParameters.ContainsKey('BatchMode') ) { $BatchMode = $true }
17941794
if ( -not $PSBoundParameters.ContainsKey('Quit') ) { $Quit = $true }
@@ -1823,7 +1823,7 @@ function Start-UnityEditor {
18231823
if ( $ForceFree) { $sharedArgs += '-force-free' }
18241824
if ( $AdditionalArguments) { $sharedArgs += $AdditionalArguments }
18251825

1826-
$instanceArgs = @()
1826+
[string[][]]$instanceArgs = @()
18271827
foreach ( $p in $projectInstances ) {
18281828

18291829
if ( $Latest ) {
@@ -1864,7 +1864,7 @@ function Start-UnityEditor {
18641864
}
18651865

18661866
# clone the shared args list
1867-
$unityArgs = $sharedArgs | ForEach-Object { $_ }
1867+
[string[]]$unityArgs = $sharedArgs | ForEach-Object { $_ }
18681868
if ( $instanceArgs[$i] ) { $unityArgs += $instanceArgs[$i] }
18691869

18701870
$actionString = "$editor $unityArgs"

0 commit comments

Comments
 (0)