Skip to content

Commit

Permalink
remove leading newline from password input
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikhauk committed Jan 12, 2024
1 parent 55d57c7 commit e35b70f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cli/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func AskPassword(f *os.File, w io.Writer, prompt string) (string, error) {
return "", err
}

fmt.Println()
fmt.Fprintln(w)

return string(passB), nil
}

0 comments on commit e35b70f

Please sign in to comment.