mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 09:49:12 +08:00
Support spaces in package names to extract
This commit is contained in:
parent
7a37d37a4e
commit
43af717d44
@ -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"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user