diff --git a/utils/jsonmessage.go b/utils/jsonmessage.go index 82fe631b49..cc467162f9 100644 --- a/utils/jsonmessage.go +++ b/utils/jsonmessage.go @@ -89,6 +89,8 @@ func (jm *JSONMessage) Display(out io.Writer, isTerminal bool) error { // [2K = erase entire current line fmt.Fprintf(out, "%c[2K\r", 27) endl = "\r" + } else if jm.Progress != nil { //disable progressbar in non-terminal + return nil } if jm.Time != 0 { fmt.Fprintf(out, "[%s] ", time.Unix(jm.Time, 0))