bunker: fix overwriting all keys always with default.

This commit is contained in:
fiatjaf 2025-07-01 15:52:44 -03:00
parent fd19855543
commit cc526acb10
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ var bunker = &cli.Command{
} }
// if we got here without any keys set (no flags, first time using a profile), use the default // if we got here without any keys set (no flags, first time using a profile), use the default
{ if config.Secret.Plain == nil && config.Secret.Encrypted == nil {
sec := os.Getenv("NOSTR_SECRET_KEY") sec := os.Getenv("NOSTR_SECRET_KEY")
if sec == "" { if sec == "" {
sec = defaultKey sec = defaultKey