Skip to content

Commit

Permalink
create config dir if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
MnlPhlp committed Feb 28, 2024
1 parent d247294 commit db1b081
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ fn save_config(config: &Projects, config_file: &PathBuf) -> Result<()> {
}
doc_commented.push(line.to_string())
}
fs::create_dir_all(config_file.parent().unwrap())?;
fs::write(config_file, doc_commented.join("\n"))?;
Ok(())
}
Expand Down

0 comments on commit db1b081

Please sign in to comment.