Skip to content

Commit

Permalink
fix broken Windows build
Browse files Browse the repository at this point in the history
on windows syscall.Stdin isn't a int.
  • Loading branch information
bitte-ein-bit committed Feb 11, 2021
1 parent bcaab7a commit 924f1a5
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 924f1a5

Please sign in to comment.