From cd9bd5c048687b61b3fc6ab3b0a4efa85935470d Mon Sep 17 00:00:00 2001 From: Raymix Date: Mon, 9 May 2016 00:09:22 +0100 Subject: [PATCH] precautions in case of spaces in folder structure... --- Tools/PowerShell/PBO_packaging_tool_GUI.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/PowerShell/PBO_packaging_tool_GUI.ps1 b/Tools/PowerShell/PBO_packaging_tool_GUI.ps1 index d068be6b..29d4ebaa 100644 --- a/Tools/PowerShell/PBO_packaging_tool_GUI.ps1 +++ b/Tools/PowerShell/PBO_packaging_tool_GUI.ps1 @@ -782,7 +782,7 @@ $Timer1 = New-Object System.Windows.Forms.Timer($components) if (Test-Path $tmp) { Remove-Item -Path $tmp -Recurse } Copy-Item -Path $x.subitems[1].Text -Destination $tmp -Recurse - $argz = @($tmp, $Output, "-packonly", "-clear", "-prefix=$name", "-project=$tmp", "-include=$includes") + $argz = @($tmp, ('"' + $Output + '"'), "-packonly", "-clear", "-prefix=$name", "-project=$tmp", "-include=$includes") Start-Process -FilePath $Bob -ArgumentList $argz -Wait } @@ -807,7 +807,7 @@ $Timer1 = New-Object System.Windows.Forms.Timer($components) Copy-Item($src + "epoch_config") -Destination $tmp -Recurse Copy-Item($src + "description.ext") -Destination $tmp - $argz = @($tmp, $Output, "-clear", "-prefix=\", "-project=P:\", "-include=$includes") + $argz = @($tmp, ('"' + $Output + '"'), "-clear", "-prefix=\", "-project=P:\", "-include=$includes") Start-Process -FilePath $Bob -ArgumentList $argz -Wait }