summary refs log tree commit diff stats
path: root/storage/getdir_unix.go
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-04-06 22:19:08 +0530
committerAndinus <andinus@nand.sh>2020-04-06 22:19:08 +0530
commitaf2a2cd8dc652527d6c52110259003856c9c1bce (patch)
tree701d8de3158bd5632bb0b80066fdfaaf9d2ee7fe /storage/getdir_unix.go
parent58644f4ccc72550481c5d0cc15360dfa40b6c648 (diff)
downloadgrus-af2a2cd8dc652527d6c52110259003856c9c1bce.tar.gz
Remove GRUS_DIR flag
Diffstat (limited to 'storage/getdir_unix.go')
-rw-r--r--storage/getdir_unix.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/storage/getdir_unix.go b/storage/getdir_unix.go
index 29bedbe..758c048 100644
--- a/storage/getdir_unix.go
+++ b/storage/getdir_unix.go
@@ -8,9 +8,9 @@ import (
 )
 
 // GetDir returns grus data directory. Check if the user has set
-// GRUS_DIR, if not then check if XDG_DATA_HOME is set & if that is
-// not set then assume it to be the default value which is
-// $HOME/.local/share according to XDG Base Directory Specification.
+// XDG_DATA_HOME is set & if that is not set then assume it to be the
+// default value which is $HOME/.local/share according to XDG Base
+// Directory Specification.
 func GetDir() string {
 	cacheDir := SysDir()
 
@@ -24,7 +24,6 @@ func GetDir() string {
 // SysDir returns the system data directory, this is useful for unveil in
 // OpenBSD.
 func SysDir() string {
-	cacheDir := os.Getenv("GRUS_DIR")
 	if len(cacheDir) == 0 {
 		cacheDir = os.Getenv("XDG_DATA_HOME")
 	}