mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-09-03 20:16:10 +00:00
Fix: Progress bar no longer jumps when hitting 100%
This commit is contained in:
+2
-2
@@ -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 {" "}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user