Skip to content

Commit

Permalink
cmd: fix login setting two hosts as current=true (#887)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorganca authored Feb 4, 2022
1 parent 4216a0d commit d451d3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ func finishLogin(host string, id uid.ID, name string, token string, skipTLSVerif
if c.Host == host {
config.Hosts[i] = hostConfig
found = true
continue
}

config.Hosts[i].Current = false
}

if !found {
Expand Down

0 comments on commit d451d3b

Please sign in to comment.