Skip to content

Commit

Permalink
fix list_github_token (#766)
Browse files Browse the repository at this point in the history
* fix list_github_token

* more idiomatic

Co-authored-by: Tahsin Hasan <tahsin352@yahoo.com>
  • Loading branch information
Tahsin-travis-ci and tahsin352 authored Sep 14, 2020
1 parent d60ef2c commit f0355f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/travis/cli/login.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def github
g.auto_password = auto_password
g.github_login = user_login
g.check_token = !skip_token_check?
g.drop_token = true
g.drop_token = !list_github_token
g.ask_login = proc { ask("Username: ") }
g.ask_password = proc { |user| ask("Password for #{user}: ") { |q| q.echo = "*" } }
g.ask_otp = proc { |user| ask("Two-factor authentication code for #{user}: ") }
Expand Down

0 comments on commit f0355f2

Please sign in to comment.