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

Commit

Permalink
Fix readpassword on go 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
biilmann committed Aug 28, 2015
1 parent 9f3f7d4 commit d275556
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cli
import (
"fmt"
"log"
"syscall"
"os"

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

func promptPassword() (string, error) {
fmt.Println("Password: ")
bytes, err := terminal.ReadPassword(syscall.Stdin)
bytes, err := terminal.ReadPassword(int(os.Stdin.Fd()))
return fmt.Sprintf("%s", bytes), err
}

Expand Down

0 comments on commit d275556

Please sign in to comment.