Skip to content

Commit 997b826

Browse files
authored
fix(): turn off progress in choco (#45)
The download progress is too noisy in CI so just turn it off completely. This fits with the previous behavior of downloading.
1 parent d74d8ab commit 997b826

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

WebKitDev/Functions/Install-FromChoco.ps1

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,12 @@ function Install-FromChoco {
5555
[string[]]$versionOptions = @('--version')
5656
)
5757

58-
$chocoArgs = @('install',$name,'--confirm');
58+
$chocoArgs = @('install',$name,'--confirm','--no-progress');
5959

6060
if ($version) {
6161
$chocoArgs += @('--version',$version);
6262
}
6363

64-
# The progress status is very noisy in CI environments so turn it off
65-
if (Test-Path env:CI) {
66-
$chocoArgs += '--no-progress';
67-
}
68-
6964
if ($installerOptions) {
7065
$joined = ($installerOptions -join ' ');
7166
$chocoArgs += ('--install-arguments="{0}"' -f ($joined -replace '"','""'));

0 commit comments

Comments
 (0)