Skip to content

Commit

Permalink
Fix logic for skipping browser on login (#2806)
Browse files Browse the repository at this point in the history
  • Loading branch information
eleftherias authored Mar 27, 2024
1 parent 216357d commit 3ffaeb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cli/app/auth/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func login(
cmd.Println("Please follow the instructions on the page to log in.")

// open user's browser to login page
if skipBroswer {
if !skipBroswer {
if err := browser.OpenURL(loginUrl); err != nil {
cmd.Printf("You may login by pasting this URL into your browser: %s\n", loginUrl)
}
Expand Down

0 comments on commit 3ffaeb6

Please sign in to comment.