mirror of
https://codeberg.org/scip/anydb.git
synced 2026-10-08 11:14:20 +02:00
Compare commits
2 Commits
v0.3.2
...
fix-stdin-
| Author | SHA1 | Date | |
|---|---|---|---|
| eb06df9bdc | |||
| a809eef125 |
@@ -18,6 +18,8 @@ builds:
|
||||
- windows
|
||||
- darwin
|
||||
- freebsd
|
||||
goarch:
|
||||
- amd64
|
||||
|
||||
archives:
|
||||
- formats: [tar.gz]
|
||||
|
||||
@@ -49,7 +49,8 @@ type Key struct {
|
||||
func AskForPassword() ([]byte, error) {
|
||||
fmt.Fprint(os.Stderr, "Password: ")
|
||||
|
||||
pass, err := term.ReadPassword(syscall.Stdin)
|
||||
// nolint: unconvert
|
||||
pass, err := term.ReadPassword(int(syscall.Stdin))
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to read password: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user