From 9c1460fa1f1d765f74f01fac630d599efb993bce Mon Sep 17 00:00:00 2001 From: darius Date: Fri, 24 May 2024 21:23:01 +0200 Subject: [PATCH] path fix --- commands/config/subcommands.go | 2 -- services/getConfigPath.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/commands/config/subcommands.go b/commands/config/subcommands.go index 0cdc8e1..f04a0f9 100644 --- a/commands/config/subcommands.go +++ b/commands/config/subcommands.go @@ -38,8 +38,6 @@ func creatAction(c *cli.Context) error { if err != nil { fmt.Println(err) } - fmt.Println(path) - fmt.Println(configPath) fmt.Println("Creating configuration file") if err = os.MkdirAll(path, 0770); err != nil { return err diff --git a/services/getConfigPath.go b/services/getConfigPath.go index 4970d4b..f722cab 100644 --- a/services/getConfigPath.go +++ b/services/getConfigPath.go @@ -14,7 +14,7 @@ func GetConfigPath() (path string, configPath string, err error) { case "windows": path = filepath.Dir(homeDir + "\\AppData\\Local\\kleinCommand\\") case "linux": - path = filepath.Dir(homeDir + "/.config/kleinCommand") + path = filepath.Dir(homeDir + "/.config/kleinCommand/") default: return "", "", errors.New("unsupported platform") }