提交 fcea632b 作者: chenminjian 提交者: Steven Allen

fix(cmd/add): progressbar output error when input is read from stdin

License: MIT
Signed-off-by: 's avatarchenminjian <727180553@qq.com>
上级 e8d1a1f0
......@@ -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 {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论