Skip to content

Commit 3cf6b70

Browse files
committed
fix: save config dir entry
1 parent 6c78019 commit 3cf6b70

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

internals/config/config.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ func CheckConfigExists(configDir string) (string, bool){
4141
}
4242

4343
func SaveConfig(path string, cfg Config) error {
44-
dir, err := GetConfigDir()
45-
if err != nil {
46-
return err
47-
}
44+
dir := filepath.Dir(path)
4845
os.MkdirAll(dir, os.ModePerm)
4946
f, err := os.Create(filepath.Join(dir, filename))
5047
if err != nil {

0 commit comments

Comments
 (0)