Skip to content

Commit ea7c0ed

Browse files
committed
Suppress progress output in install.ps1
- in windows, this blue background looks awkward ├── install.ps1 └── install.sh
1 parent effd4af commit ea7c0ed

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎install.ps1‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
$ErrorActionPreference = "Stop"
2+
$ProgressPreference = "SilentlyContinue"
23
$targetScheme = $args[0]
34

45
function Fail($Message) {
@@ -84,7 +85,6 @@ if ($targetScheme -and $idx -ge 0) {
8485

8586
function Invoke-Step {
8687
param([string]$Message, [scriptblock]$Action, [string]$ErrorMsg)
87-
Write-Progress -Activity "CodeWebChat Installation" -Status $Message
8888
Write-Host -NoNewline " $Message"
8989

9090
$prevPreference = $ErrorActionPreference
@@ -99,7 +99,6 @@ function Invoke-Step {
9999
$ErrorActionPreference = $prevPreference
100100
}
101101

102-
Write-Progress -Activity "CodeWebChat Installation" -Completed
103102
if ($ok) { Write-Host "`r$([char]0x2714)" -ForegroundColor Green }
104103
else { Write-Host "`r$([char]0x2718)" -ForegroundColor Red }
105104
if (!$ok -and $ErrorMsg) { Fail $ErrorMsg }

0 commit comments

Comments
 (0)