Skip to content

Commit cc526ac

Browse files
committed
bunker: fix overwriting all keys always with default.
1 parent fd19855 commit cc526ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bunker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ var bunker = &cli.Command{
166166
}
167167

168168
// if we got here without any keys set (no flags, first time using a profile), use the default
169-
{
169+
if config.Secret.Plain == nil && config.Secret.Encrypted == nil {
170170
sec := os.Getenv("NOSTR_SECRET_KEY")
171171
if sec == "" {
172172
sec = defaultKey

0 commit comments

Comments
 (0)