mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Print a new line after getting the password from stdin.
This commit is contained in:
parent
6e4a818ee6
commit
f18889bf67
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue