Skip to content

Commit

Permalink
Merge pull request #105 from allcloud-io/fix/broken-stdin-on-windows
Browse files Browse the repository at this point in the history
fix broken Windows build
  • Loading branch information
Jonathan committed Feb 11, 2021
2 parents bcaab7a + 924f1a5 commit 46201e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ var cmdProvidersPassword = &cobra.Command{
Run: func(cmd *cobra.Command, args []string) {
provider := args[0]
fmt.Printf("Please enter the password for the '%s' provider: ", provider)
pass, err := term.ReadPassword(syscall.Stdin)
pass, err := term.ReadPassword(int(syscall.Stdin))
if err != nil {
log.Fatalf(color.RedString("Could not read password"))
}
Expand Down

0 comments on commit 46201e8

Please sign in to comment.