Skip to content

Commit

Permalink
Merge branch 'master' into default-pub-from-private
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Schroeder authored and milkpirate committed Jun 5, 2023
2 parents b643be3 + a1dcf6d commit c7f15da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ func Add() *cobra.Command {
publicKeyFileName = privateKeyFileName + ".pub"
}

publicKey, err := readFile(publicKeyFileName)
privateKey, err := readFile(privateKeyFileName)
if err != nil {
return err
}

privateKey, err := readFile(privateKeyFileName)
publicKey, err := readFile(publicKeyFileName)
if err != nil {
return err
publicKey = privateKey + ".pub"
}

item := provider.Item{
Expand Down

0 comments on commit c7f15da

Please sign in to comment.