fix: Write to correct config path when none exists. (#449)
This commit is contained in:
@@ -531,6 +531,7 @@ impl ConfigFile {
|
|||||||
|
|
||||||
// If no config file exists, create a default one in the config directory
|
// If no config file exists, create a default one in the config directory
|
||||||
if !res.0.exists() && res.1.is_empty() {
|
if !res.0.exists() && res.1.is_empty() {
|
||||||
|
res.0 = possible_config_paths[0].clone();
|
||||||
debug!("No configuration exists");
|
debug!("No configuration exists");
|
||||||
write(&res.0, EXAMPLE_CONFIG).map_err(|e| {
|
write(&res.0, EXAMPLE_CONFIG).map_err(|e| {
|
||||||
debug!(
|
debug!(
|
||||||
|
|||||||
Reference in New Issue
Block a user