mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
only show status message if there is one to show
This commit is contained in:
parent
9b94d89b06
commit
d94a5b7d05
1 changed files with 3 additions and 1 deletions
|
@ -105,7 +105,9 @@ func (srv *Server) CmdLogin(stdin io.ReadCloser, stdout io.Writer, args ...strin
|
|||
if err != nil {
|
||||
fmt.Fprintf(stdout, "Error : %s\n", err)
|
||||
}
|
||||
fmt.Fprintf(stdout, status)
|
||||
if status != "" {
|
||||
fmt.Fprintf(stdout, status)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue