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