only print horizontal rule at first attempt

This commit is contained in:
Omar Ismail 2021-02-10 20:47:50 -05:00
parent d96c90b6af
commit 4ac095b63f
1 changed files with 3 additions and 1 deletions

View File

@ -276,7 +276,9 @@ func (b *Remote) costEstimate(stopCtx, cancelCtx context.Context, op *backend.Op
}
}
if b.CLI != nil {
// checking if i == 0 so as to avoid printing this starting horizontal-rule
// every retry, and that it only prints it on the first (i=0) attempt.
if b.CLI != nil && i == 0 {
b.CLI.Output("\n------------------------------------------------------------------------\n")
}