From 85fb66e637c10302fdeb1f3bedcd5ed1ea204fec Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 19 Sep 2020 13:30:28 -0400 Subject: cedar.go: update cacheFor Use os.Getenv to get the home directory. --- cedar.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3