Skip to content

Commit 3faa2a8

Browse files
committed
chore: create .hermes folder if missing
1 parent bdf17b3 commit 3faa2a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

caribic/src/start.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,9 @@ pub fn configure_hermes(osmosis_dir: &Path) -> Result<(), Box<dyn std::error::Er
588588
let script_dir = osmosis_dir.join("scripts");
589589
if let Some(home_path) = home_dir() {
590590
let hermes_dir = home_path.join(".hermes");
591+
if !hermes_dir.exists() {
592+
fs::create_dir_all(&hermes_dir)?;
593+
}
591594
let options = fs_extra::file::CopyOptions::new().overwrite(true);
592595
verbose(&format!(
593596
"Copying Hermes configuration files from {} to {}",

0 commit comments

Comments
 (0)