From f62dacef0b87d742500ccb762ccb0cf59019fd4e Mon Sep 17 00:00:00 2001 From: Simon Hartcher Date: Sat, 11 Feb 2017 18:09:28 +1100 Subject: [PATCH] Fix: Progress bar no longer jumps when hitting 100% --- lib/install.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {" "})) }