Support spaces in package names to extract

This commit is contained in:
Jackbennett 2016-05-25 10:13:47 +01:00
parent 7a37d37a4e
commit 43af717d44

View File

@ -28,7 +28,7 @@ function Delete-Existing ($path) {
}
function Extract-Archive ($source, $target) {
Invoke-Expression "7z x -y -o$($target) '$source' > `$null"
Invoke-Expression "7z x -y -o`"$($target)`" `"$source`" > `$null"
if ($lastexitcode -ne 0) {
Write-Error "Extracting of $source failied"
}