fix(PDA_CONFIG): sets to dir where config.toml should be found rather than directly to a file
This commit is contained in:
parent
7707dfbe86
commit
e6d39e84d8
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ func loadConfig() (Config, error) {
|
|||
|
||||
func configPath() (string, error) {
|
||||
if override := os.Getenv("PDA_CONFIG"); override != "" {
|
||||
return override, nil
|
||||
return filepath.Join(override, "config.toml"), nil
|
||||
}
|
||||
scope := gap.NewScope(gap.User, "pda")
|
||||
dir, err := scope.ConfigPath("")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue