mirror of https://github.com/fiatjaf/nak.git
bunker: fix overwriting all keys always with default.
This commit is contained in:
parent
fd19855543
commit
cc526acb10
|
@ -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 config.Secret.Plain == nil && config.Secret.Encrypted == nil {
|
||||
sec := os.Getenv("NOSTR_SECRET_KEY")
|
||||
if sec == "" {
|
||||
sec = defaultKey
|
||||
|
|
Loading…
Reference in New Issue