path fix
This commit is contained in:
parent
6d5978e35b
commit
9c1460fa1f
@ -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
|
||||
|
||||
@ -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")
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user