This commit is contained in:
darius 2024-05-24 21:23:01 +02:00
parent 6d5978e35b
commit 9c1460fa1f
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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")
}