summaryrefslogtreecommitdiffstats
path: root/cedar.go
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2020-09-19 13:31:06 -0400
committerrsiddharth <s@ricketyspace.net>2020-09-19 13:31:06 -0400
commit5ad580a6585f3de4f09b599f9391c5838eb7f516 (patch)
tree71e5ae74e23196ae2d9bb55df8bf9750f781f03d /cedar.go
parent85fb66e637c10302fdeb1f3bedcd5ed1ea204fec (diff)
cedar.go: update Ids.save
Use os.Getenv to get the home directory.
Diffstat (limited to 'cedar.go')
-rw-r--r--cedar.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cedar.go b/cedar.go
index e1a7a0e..f25147a 100644
--- a/cedar.go
+++ b/cedar.go
@@ -149,7 +149,7 @@ func (cache *Ids) add(entry Entry) {
}
func (cache Ids) save(section string) error {
- h, _ := os.UserHomeDir()
+ h := os.Getenv("HOME")
d := path.Join(h, ".cedar")
f, err := os.OpenFile(path.Join(d, section+".json"),