diff --git a/lib/install.ps1 b/lib/install.ps1 index f6a3bf2e..b2d1f70f 100644 --- a/lib/install.ps1 +++ b/lib/install.ps1 @@ -230,8 +230,8 @@ function dl_progress_output($url, $read, $total, $console) { } # the remaining characters are filled with spaces - $spaces = switch($p) { - 100 {[string]::Empty} + $spaces = switch($dashes.Length) { + $midwidth {[string]::Empty} default { [string]::Join("", ((1..($midwidth - $dashes.Length)) | ForEach-Object {" "})) }