mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-07 06:22:03 +00:00
only show status message if there is one to show
This commit is contained in:
+3
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user