Skip to content

Commit 4c70a9c

Browse files
committed
Wrap each path individually in quotes to fix exports
1 parent 602fb72 commit 4c70a9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1810,7 +1810,7 @@ function Start-UnityEditor {
18101810
if ( $BuildTarget ) { $sharedArgs += "-buildTarget", $BuildTarget }
18111811
if ( $BatchMode ) { $sharedArgs += "-batchmode" }
18121812
if ( $Quit ) { $sharedArgs += "-quit" }
1813-
if ( $ExportPackage ) { $sharedArgs += "-exportPackage", "`"$ExportPackage`"" }
1813+
if ( $ExportPackage ) { $sharedArgs += "-exportPackage", ($ExportPackage | ForEach-Object { "`"$_`"" }) }
18141814
if ( $ImportPackage ) { $sharedArgs += "-importPackage", "`"$ImportPackage`"" }
18151815
if ( $Credential ) { $sharedArgs += '-username', $Credential.UserName }
18161816
if ( $EditorTestsCategory ) { $sharedArgs += '-editorTestsCategories', ($EditorTestsCategory -join ',') }

0 commit comments

Comments
 (0)