Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hkctkuy committed Jun 4, 2024
1 parent c8a8a3e commit 01034ea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions casr/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,8 @@ pub fn initialize_dirs(matches: &clap::ArgMatches) -> Result<&PathBuf> {
if !casrep_dir.exists() && fs::create_dir_all(&casrep_dir).is_err() {
bail!("Failed to create dir {}", &casrep_dir.to_str().unwrap());
}
} else {
fs::create_dir_all(output_dir).with_context(|| {
format!("Couldn't create output directory {}", output_dir.display())
})?;
} else if !output_dir.exists() && fs::create_dir_all(output_dir).is_err() {
format!("Couldn't create output directory {}", output_dir.display());
}

// Get oom dir
Expand Down

0 comments on commit 01034ea

Please sign in to comment.