diff options
author | Andinus <andinus@nand.sh> | 2020-03-25 00:13:51 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-03-25 00:13:51 +0530 |
commit | 3ee3715ae7777dd6c1804974e2e293406fd1fe54 (patch) | |
tree | f035e76ff9ce48d03299381d03906eaff76140dc /cache | |
parent | 28e35c0b0b996e17bd94a5b9e78fda90086ba85e (diff) | |
download | cetus-3ee3715ae7777dd6c1804974e2e293406fd1fe54.tar.gz |
Add apod support & fix errors
Diffstat (limited to 'cache')
-rw-r--r-- | cache/getdir_darwin.go | 4 | ||||
-rw-r--r-- | cache/getdir_unix.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cache/getdir_darwin.go b/cache/getdir_darwin.go index fc47e7e..733e94e 100644 --- a/cache/getdir_darwin.go +++ b/cache/getdir_darwin.go @@ -10,13 +10,13 @@ import ( // GetDir returns cetus cache directory. Default cache directory on // macOS is $HOME/Library/Caches. func GetDir() string { - cacheDir = fmt.Sprintf("%s/%s/%s", + cacheDir := fmt.Sprintf("%s/%s/%s", os.Getenv("HOME"), "Library", "Caches") // Cetus cache directory is cacheDir/cetus - cetusCacheDir = fmt.Sprintf("%s/%s", cacheDir, + cetusCacheDir := fmt.Sprintf("%s/%s", cacheDir, "cetus") return cetusCacheDir diff --git a/cache/getdir_unix.go b/cache/getdir_unix.go index b1358d7..62dd5ed 100644 --- a/cache/getdir_unix.go +++ b/cache/getdir_unix.go @@ -22,7 +22,7 @@ func GetDir() string { } // Cetus cache directory is cacheDir/cetus. - cetusCacheDir = fmt.Sprintf("%s/%s", cacheDir, + cetusCacheDir := fmt.Sprintf("%s/%s", cacheDir, "cetus") return cetusCacheDir |