mirror of
https://github.com/cmderdev/cmder.git
synced 2025-02-10 23:49:07 +08:00
Silencing the noise
This commit is contained in:
parent
d5d8b0944b
commit
46f6f677dc
@ -68,4 +68,4 @@ foreach ($s in $sources) {
|
||||
}
|
||||
|
||||
Pop-Location
|
||||
Write-Verbose "All good and done!"
|
||||
Write-Verbose "All good and done!"
|
@ -47,7 +47,7 @@ $targets = @{
|
||||
Delete-Existing "..\Version*"
|
||||
|
||||
$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()) {
|
||||
Create-Archive $cmderRoot "$saveTo\$($t.Name)" $t.Value
|
||||
|
@ -19,7 +19,7 @@ function Delete-Existing ($path) {
|
||||
}
|
||||
|
||||
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) {
|
||||
Write-Error "Extracting of $source failied"
|
||||
}
|
||||
@ -27,7 +27,7 @@ function Extract-Archive ($source, $target) {
|
||||
}
|
||||
|
||||
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"
|
||||
Invoke-Expression $command
|
||||
if ($lastexitcode -ne 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user