mirror of
https://github.com/cmderdev/cmder.git
synced 2025-06-14 05:37:51 +08:00
Support spaces in package names to extract
This commit is contained in:
@ -28,7 +28,7 @@ function Delete-Existing ($path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Extract-Archive ($source, $target) {
|
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) {
|
if ($lastexitcode -ne 0) {
|
||||||
Write-Error "Extracting of $source failied"
|
Write-Error "Extracting of $source failied"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user