Skip to content

Commit 6b1f1db

Browse files
author
Paul Schroeder
committed
Merge branch 'master' into default-pub-from-private
2 parents b643be3 + a1dcf6d commit 6b1f1db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/add.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ func Add() *cobra.Command {
5151
publicKeyFileName = privateKeyFileName + ".pub"
5252
}
5353

54-
publicKey, err := readFile(publicKeyFileName)
54+
privateKey, err := readFile(privateKeyFileName)
5555
if err != nil {
5656
return err
5757
}
5858

59-
privateKey, err := readFile(privateKeyFileName)
59+
publicKey, err := readFile(publicKeyFileName)
6060
if err != nil {
61-
return err
61+
publicKey = privateKey + ".pub"
6262
}
6363

6464
item := provider.Item{

0 commit comments

Comments
 (0)