Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.

Commit d275556

Browse files
committed
Fix readpassword on go 1.5
1 parent 9f3f7d4 commit d275556

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/users.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package cli
33
import (
44
"fmt"
55
"log"
6-
"syscall"
6+
"os"
77

88
"github.com/netlify/netlify-git-api/userdb"
99
"golang.org/x/crypto/ssh/terminal"
@@ -18,7 +18,7 @@ func promptString(name string) (string, error) {
1818

1919
func promptPassword() (string, error) {
2020
fmt.Println("Password: ")
21-
bytes, err := terminal.ReadPassword(syscall.Stdin)
21+
bytes, err := terminal.ReadPassword(int(os.Stdin.Fd()))
2222
return fmt.Sprintf("%s", bytes), err
2323
}
2424

0 commit comments

Comments
 (0)