Skip to content

Commit

Permalink
Merge pull request #20 from aliou/use-new-gopass-version
Browse files Browse the repository at this point in the history
Update gopass calls to work with the latest version
  • Loading branch information
pearkes committed Jun 22, 2016
2 parents 9d4cc9b + 94f71ea commit 1296cf0
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions steps/step_authorize_github.go
Expand Up @@ -66,7 +66,12 @@ authorization token from GitHub's API, which will be stored in

fmt.Printf("If you use Two-Factor Authentication, enter a generated personal access token now. (Otherwise, press enter to skip and use a password): ")

t := gopass.GetPasswd()
t, err := gopass.GetPasswd()
if err != nil {
fmt.Println(err)
os.Exit(1)
}

token := string(t)

if token != "" {
Expand Down Expand Up @@ -101,7 +106,12 @@ authorization token from GitHub's API, which will be stored in

fmt.Printf("Please enter your GitHub password: ")

p := gopass.GetPasswd()
p, err := gopass.GetPasswd()
if err != nil {
fmt.Println(err)
os.Exit(1)
}

fmt.Printf("\n")

password := string(p)
Expand Down

1 comment on commit 1296cf0

@daredevil786
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

t := gopass.GetPasswd()

  • t, err := gopass.GetPasswd()
  • if err != nil {
  •  fmt.Println(err)
    
  •  os.Exit(1)
    
  • }

Please sign in to comment.