chore(release) fix errors
This commit is contained in:
@@ -2,14 +2,13 @@ pub struct Perf;
|
||||
|
||||
impl Perf {
|
||||
fn run() -> eyre::Result<()> {
|
||||
if let Err(_) = util::shell::run_with_input_and_output(&["bottom", "--version"], "".into())
|
||||
{
|
||||
if let Err(_) = util::shell::run_with_input_and_output(&["btm", "--version"], "".into()) {
|
||||
return Err(eyre::anyhow!(
|
||||
"could not find bottom, please install or add to PATH"
|
||||
"could not find btm, please install or add to PATH"
|
||||
));
|
||||
}
|
||||
|
||||
util::shell::run(&["bottom"], None)?;
|
||||
util::shell::run(&["btm"], None)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
@@ -8,7 +8,7 @@ impl Procs {
|
||||
));
|
||||
}
|
||||
|
||||
util::shell::run(&["procs"], None)?;
|
||||
util::shell::run_with_input(&["procs"], "".into())?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
@@ -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(
|
||||
|
Reference in New Issue
Block a user