Skip to content

Commit 3d91bb4

Browse files
committed
Fix progress bar not showing for non-tty terminal
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent e487f26 commit 3d91bb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

siwiflasher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ def update(self, j):
136136
self.hash = x
137137
self.file.write("%s\n|%s" % (self.prefix, "#"*x))
138138
else:
139+
self.file.write("%s" % ("#"*(x-self.hash)))
139140
self.hash = x
140-
self.file.write("#")
141141
self.file.flush()
142142

143143
def end(self):

0 commit comments

Comments
 (0)