Skip to content

Commit

Permalink
boltdb homedir fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DefinitelyNotAGoat committed Mar 7, 2020
1 parent ee701dc commit 3732047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/internal/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func Open(path string) (*DB, error) {
if err != nil {
return &DB{}, errors.Wrap(err, "failed to open boltdb")
}
path = fmt.Sprintf("%s.tzpay/tzpay.db", usr)
path = fmt.Sprintf("%s/.tzpay/tzpay.db", usr.HomeDir)
}
db, err := bolt.Open(path, 0600, nil)
if err != nil {
Expand Down

0 comments on commit 3732047

Please sign in to comment.