Print a new line after getting the password from stdin.
Upstream-commit: f18889bf674e574a3ac1315ed7bbd56bf638e6c5 Component: engine
This commit is contained in:
@ -301,6 +301,7 @@ func (cli *DockerCli) CmdLogin(args ...string) error {
|
||||
|
||||
term.DisableEcho(cli.terminalFd, cli.out, oldState)
|
||||
password = readInput(cli.in, cli.out)
|
||||
fmt.Fprint(cli.out, "\n")
|
||||
|
||||
term.RestoreTerminal(cli.terminalFd, oldState)
|
||||
|
||||
@ -310,7 +311,7 @@ func (cli *DockerCli) CmdLogin(args ...string) error {
|
||||
}
|
||||
|
||||
if email == "" {
|
||||
promptDefault("\nEmail", authconfig.Email)
|
||||
promptDefault("Email", authconfig.Email)
|
||||
email = readInput(cli.in, cli.out)
|
||||
if email == "" {
|
||||
email = authconfig.Email
|
||||
|
||||
Reference in New Issue
Block a user