mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-23 11:27:42 +08:00
Merge pull request #5743 from chenminjian/fix/cmd/add
fix(cmd/add): progressbar output error when input is read from stdin
This commit is contained in:
commit
ee11bc790b
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user