Skip to content

Commit 1397b0e

Browse files
authored
Merge pull request #214 from jwittner/fix/exportPackage
Wrap each path individually in quotes to fix exports
2 parents 0505144 + 4c70a9c commit 1397b0e

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
@@ -1824,7 +1824,7 @@ function Start-UnityEditor {
18241824
if ( $BuildTarget ) { $sharedArgs += "-buildTarget", $BuildTarget }
18251825
if ( $BatchMode ) { $sharedArgs += "-batchmode" }
18261826
if ( $Quit ) { $sharedArgs += "-quit" }
1827-
if ( $ExportPackage ) { $sharedArgs += "-exportPackage", "`"$ExportPackage`"" }
1827+
if ( $ExportPackage ) { $sharedArgs += "-exportPackage", ($ExportPackage | ForEach-Object { "`"$_`"" }) }
18281828
if ( $ImportPackage ) { $sharedArgs += "-importPackage", "`"$ImportPackage`"" }
18291829
if ( $Credential ) { $sharedArgs += '-username', $Credential.UserName }
18301830
if ( $EditorTestsCategory ) { $sharedArgs += '-editorTestsCategories', ($EditorTestsCategory -join ',') }

0 commit comments

Comments
 (0)