mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-10 16:29:08 +08:00
remove stderr progress for 7-zip
This commit is contained in:
parent
e8d34e07a1
commit
9f395805e1
@ -29,7 +29,7 @@ function Delete-Existing($path) {
|
|||||||
|
|
||||||
function Extract-Archive($source, $target) {
|
function Extract-Archive($source, $target) {
|
||||||
Write-Verbose $("Extracting Archive '$cmder_root\vendor\" + $source.replace('/','\') + " to '$cmder_root\vendor\$target'")
|
Write-Verbose $("Extracting Archive '$cmder_root\vendor\" + $source.replace('/','\') + " to '$cmder_root\vendor\$target'")
|
||||||
Invoke-Expression "7z x -bsp2 -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 failed"
|
Write-Error "Extracting of $source failed"
|
||||||
}
|
}
|
||||||
@ -37,7 +37,7 @@ function Extract-Archive($source, $target) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Create-Archive($source, $target, $params) {
|
function Create-Archive($source, $target, $params) {
|
||||||
$command = "7z a -x@`"$source\packignore`" -bsp2 $params $target $source > `$null"
|
$command = "7z a -x@`"$source\packignore`" $params $target $source > `$null"
|
||||||
Write-Verbose "Creating Archive from '$source' in '$target' with parameters '$params'"
|
Write-Verbose "Creating Archive from '$source' in '$target' with parameters '$params'"
|
||||||
Invoke-Expression $command
|
Invoke-Expression $command
|
||||||
if ($lastexitcode -ne 0) {
|
if ($lastexitcode -ne 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user