Fix: stop checking config paths after finding a config file
This commit is contained in:
parent
bd7942430c
commit
38cfbdcfb8
1 changed files with 4 additions and 2 deletions
|
@ -132,8 +132,10 @@ impl Config {
|
|||
let mut system_path= system_config_paths[1];
|
||||
|
||||
for path in system_config_paths {
|
||||
if path.exists() {
|
||||
let cfg_path = path.join("config.toml");
|
||||
if cfg_path.exists() {
|
||||
system_path = path;
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue