Silencing the noise

This commit is contained in:
Samuel Vasko 2014-04-10 14:42:20 +02:00
parent d5d8b0944b
commit 46f6f677dc
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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) {