chore(release) fix errors

This commit is contained in:
2022-12-19 09:59:49 +01:00
parent 0408fe856d
commit 38dd5a7ab7
7 changed files with 71 additions and 8 deletions

View File

@@ -12,7 +12,9 @@ impl util::Cmd for Update {
let mut tldr_cache_dir = cache_dir.clone();
tldr_cache_dir.push("kah-toolkit/tldr/store/");
std::fs::remove_dir_all(&tldr_cache_dir)?;
if let Err(_) = std::fs::remove_dir_all(&tldr_cache_dir) {
// ignored
}
std::fs::create_dir_all(&tldr_cache_dir)?;
util::shell::run(