mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 19:44:01 +08:00
fix(cmd/add): progressbar output error when input is read from stdin
License: MIT Signed-off-by: chenminjian <727180553@qq.com>
This commit is contained in:

committed by
Steven Allen

parent
e8d1a1f0c5
commit
fcea632b3d
@ -327,6 +327,14 @@ You can now check what blocks have been created by:
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if progress && bar.Total == 0 && bar.Get() != 0 {
|
||||
bar.Total = bar.Get()
|
||||
bar.ShowPercent = true
|
||||
bar.ShowBar = true
|
||||
bar.ShowTimeLeft = true
|
||||
bar.Update()
|
||||
}
|
||||
}
|
||||
|
||||
if e := res.Error(); e != nil {
|
||||
|
Reference in New Issue
Block a user