From f0355f2e0d19288b5a50ca76fb49d676ac609e79 Mon Sep 17 00:00:00 2001 From: Tahsin Hasan <51903216+Tahsin-travis-ci@users.noreply.github.com> Date: Mon, 14 Sep 2020 19:42:16 +0600 Subject: [PATCH] fix list_github_token (#766) * fix list_github_token * more idiomatic Co-authored-by: Tahsin Hasan --- lib/travis/cli/login.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/travis/cli/login.rb b/lib/travis/cli/login.rb index 272e8a6b..34e7cdf7 100644 --- a/lib/travis/cli/login.rb +++ b/lib/travis/cli/login.rb @@ -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}: ") }