Skip to content

Commit

Permalink
fixing the changes lost in the .toml file in case the user added `s…
Browse files Browse the repository at this point in the history
…osEndpoint`, it gets lost after switching the account.
  • Loading branch information
elkezza committed Nov 18, 2024
1 parent b62c36e commit 0be2732
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ func saveConfig(filePath string, newAccounts *account.Config) error {
if acc.Account != "" {
accounts[i]["account"] = acc.Account
}
if acc.SosEndpoint != "" {
accounts[i]["sosendpoint"] = acc.SosEndpoint
}
if len(acc.SecretCommand) != 0 {
accounts[i]["secretCommand"] = acc.SecretCommand
} else {
Expand Down

0 comments on commit 0be2732

Please sign in to comment.