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

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