only print horizontal rule at first attempt

pull/27735/head
Omar Ismail 5 years ago
parent d96c90b6af
commit 4ac095b63f

@ -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")
}

Loading…
Cancel
Save