summaryrefslogtreecommitdiffstats
path: root/cedar.go
diff options
context:
space:
mode:
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"),