Skip to content

Commit

Permalink
write newline to output writer instead of input file
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikhauk committed Jan 12, 2024
1 parent 7865135 commit ad157fe
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 @@ -34,7 +34,7 @@ func AskPassword(f *os.File, w io.Writer, prompt string) (string, error) {
return "", err
}

fmt.Fprintln(f)
fmt.Fprintln(w)

return string(passB), nil
}

0 comments on commit ad157fe

Please sign in to comment.