Suppress output of 7z

This commit is contained in:
Roelf-Jilling 2018-11-17 23:03:07 +01:00
parent 449eec40f8
commit 3c1c0794dd

View File

@ -46,7 +46,7 @@ install:
"https://github.com/ninja-build/ninja/releases/download/$env:NINJA_TAG/ninja-win.zip" "https://github.com/ninja-build/ninja/releases/download/$env:NINJA_TAG/ninja-win.zip"
$hash = (Get-FileHash ninja-win.zip -Algorithm SHA512).Hash $hash = (Get-FileHash ninja-win.zip -Algorithm SHA512).Hash
if ($env:NINJA_SHA512 -eq $hash) { if ($env:NINJA_SHA512 -eq $hash) {
7z e -y ninja-win.zip -o"$env:NINJA_PATH" 7z e -y ninja-win.zip -o"$env:NINJA_PATH" > $NULL
} else { Write-Warning "Ninja download hash changed!"; Write-Output "$hash" } } else { Write-Warning "Ninja download hash changed!"; Write-Output "$hash" }
} }
if ([IO.File]::Exists("$env:NINJA_PATH\ninja.exe")) { if ([IO.File]::Exists("$env:NINJA_PATH\ninja.exe")) {
@ -55,7 +55,7 @@ install:
if ($env:USE_TOOLSET -ne "LLVM") { if ($env:USE_TOOLSET -ne "LLVM") {
if (![IO.File]::Exists("C:\cmake-3.8.0-win32-x86\bin\cmake.exe")) { if (![IO.File]::Exists("C:\cmake-3.8.0-win32-x86\bin\cmake.exe")) {
Start-FileDownload 'https://cmake.org/files/v3.8/cmake-3.8.0-win32-x86.zip' Start-FileDownload 'https://cmake.org/files/v3.8/cmake-3.8.0-win32-x86.zip'
7z x -y cmake-3.8.0-win32-x86.zip -oC:\ 7z x -y cmake-3.8.0-win32-x86.zip -oC:\ > $NULL
} }
$env:PATH="C:\cmake-3.8.0-win32-x86\bin;$env:PATH" $env:PATH="C:\cmake-3.8.0-win32-x86\bin;$env:PATH"
} }