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 { if err != nil {
fmt.Println(err) fmt.Println(err)
} }
fmt.Println(path)
fmt.Println(configPath)
fmt.Println("Creating configuration file") fmt.Println("Creating configuration file")
if err = os.MkdirAll(path, 0770); err != nil { if err = os.MkdirAll(path, 0770); err != nil {
return err return err

View File

@ -14,7 +14,7 @@ func GetConfigPath() (path string, configPath string, err error) {
case "windows": case "windows":
path = filepath.Dir(homeDir + "\\AppData\\Local\\kleinCommand\\") path = filepath.Dir(homeDir + "\\AppData\\Local\\kleinCommand\\")
case "linux": case "linux":
path = filepath.Dir(homeDir + "/.config/kleinCommand") path = filepath.Dir(homeDir + "/.config/kleinCommand/")
default: default:
return "", "", errors.New("unsupported platform") return "", "", errors.New("unsupported platform")
} }