Skip to content

Commit

Permalink
Change kne config location
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmasi committed Jul 26, 2023
1 parent 5e62e6b commit c03d739
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cloudbuild/internal.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ build {
"cd ../controller/server",
"/usr/local/go/bin/go build",
"cd $HOME",
"mkdir .kne",
"echo \"report_usage: true\" > .kne/config.yaml",
"mkdir -p .config/kne",
"echo \"report_usage: true\" > .config/kne/config.yaml",
]
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ environment.`,

func defaultCfgFile() string {
if home := homedir.HomeDir(); home != "" {
return filepath.Join(home, ".kne", "config.yaml")
return filepath.Join(home, ".config", "kne", "config.yaml")
}
return ""
}
Expand Down

0 comments on commit c03d739

Please sign in to comment.