mirror of
https://github.com/cmderdev/cmder.git
synced 2025-02-11 16:00:21 +08:00
Silencing the noise
This commit is contained in:
parent
d5d8b0944b
commit
46f6f677dc
@ -47,7 +47,7 @@ $targets = @{
|
|||||||
Delete-Existing "..\Version*"
|
Delete-Existing "..\Version*"
|
||||||
|
|
||||||
$version = Invoke-Expression "git describe --abbrev=0 --tags"
|
$version = Invoke-Expression "git describe --abbrev=0 --tags"
|
||||||
New-Item -ItemType file "$cmderRoot\Version $version"
|
(New-Item -ItemType file "$cmderRoot\Version $version") | Out-Null
|
||||||
|
|
||||||
foreach ($t in $targets.GetEnumerator()) {
|
foreach ($t in $targets.GetEnumerator()) {
|
||||||
Create-Archive $cmderRoot "$saveTo\$($t.Name)" $t.Value
|
Create-Archive $cmderRoot "$saveTo\$($t.Name)" $t.Value
|
||||||
|
@ -19,7 +19,7 @@ function Delete-Existing ($path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Extract-Archive ($source, $target) {
|
function Extract-Archive ($source, $target) {
|
||||||
Invoke-Expression "7z x -y -o$($target) $source"
|
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"
|
||||||
}
|
}
|
||||||
@ -27,7 +27,7 @@ function Extract-Archive ($source, $target) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Create-Archive ($source, $target, $params) {
|
function Create-Archive ($source, $target, $params) {
|
||||||
$command = "7z a -x@`"$source\packignore`" $params $target $source"
|
$command = "7z a -x@`"$source\packignore`" $params $target $source > `$null"
|
||||||
Write-Verbose "Running: $command"
|
Write-Verbose "Running: $command"
|
||||||
Invoke-Expression $command
|
Invoke-Expression $command
|
||||||
if ($lastexitcode -ne 0) {
|
if ($lastexitcode -ne 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user