fix: Write to correct config path when none exists. (#449)

This commit is contained in:
slowsage
2023-05-30 03:07:02 -04:00
committed by GitHub
parent d4548b2f9a
commit c7923393be

View File

@@ -531,6 +531,7 @@ impl ConfigFile {
// If no config file exists, create a default one in the config directory
if !res.0.exists() && res.1.is_empty() {
res.0 = possible_config_paths[0].clone();
debug!("No configuration exists");
write(&res.0, EXAMPLE_CONFIG).map_err(|e| {
debug!(