Skip to content

Commit

Permalink
Add a new line after password input (#1407)
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <[email protected]>
  • Loading branch information
knqyf263 authored Feb 6, 2022
1 parent 6ed068a commit 5efee8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cosign/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ func GetPassFromTerm(confirm bool) ([]byte, error) {
if err != nil {
return nil, err
}
fmt.Fprintln(os.Stderr)
if !confirm {
return pw1, nil
}
fmt.Fprintln(os.Stderr)
fmt.Fprint(os.Stderr, "Enter password for private key again: ")
confirmpw, err := term.ReadPassword(0)
fmt.Fprintln(os.Stderr)
Expand Down

0 comments on commit 5efee8a

Please sign in to comment.