summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2020-09-19 13:30:28 -0400
committerrsiddharth <s@ricketyspace.net>2020-09-19 13:30:57 -0400
commit85fb66e637c10302fdeb1f3bedcd5ed1ea204fec (patch)
treebbd8264563fbbdc831deb246f07afb479cb69f87
parent2700fceab38f2c79af0bb26e31d32218c56b6de7 (diff)
cedar.go: update cacheFor
Use os.Getenv to get the home directory.
-rw-r--r--cedar.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cedar.go b/cedar.go
index ebd22c8..e1a7a0e 100644
--- a/cedar.go
+++ b/cedar.go
@@ -110,7 +110,7 @@ func writeFile(f os.File, cache Ids) error {
func cacheFor(section string) (Ids, error) {
cache := make(Ids, 0)
- h, _ := os.UserHomeDir()
+ h := os.Getenv("HOME")
d := path.Join(h, ".cedar")
err := os.MkdirAll(d, 0700)