summaryrefslogtreecommitdiff
path: root/pkg/config
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-08-18 18:05:45 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-08-20 20:27:46 +0200
commitb9cae0b715ce34cfb0b7f85f023c31ef8ddd54d3 (patch)
treece8ff309c26150604e96eb9c5cd41cd61ff48470 /pkg/config
parenta10c5ecd2b4bba6814fd66f0ec1997938d95bf92 (diff)
[feat] cache authentication token
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/unix.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/config/unix.go b/pkg/config/unix.go
index 7425f5b..f96f6a6 100644
--- a/pkg/config/unix.go
+++ b/pkg/config/unix.go
@@ -18,7 +18,8 @@ package config
import (
"os"
+ "path"
)
// Path for the config files
-var Path = os.Getenv("HOME") + "/.config/leap"
+var Path = path.Join(os.Getenv("HOME"), ".config", "leap")