Add check_run()

This commit is contained in:
Roey Darwish Dror
2018-12-31 22:00:34 +02:00
parent a404df9c97
commit f3f8f322d8
11 changed files with 71 additions and 215 deletions

View File

@@ -19,7 +19,7 @@ pub fn run_tpm(base_dirs: &BaseDirs, run_type: RunType) -> Option<(&'static str,
print_separator("tmux plugins");
let success = || -> Result<(), Error> {
run_type.execute(&tpm).arg("all").spawn()?.wait()?;
run_type.execute(&tpm).arg("all").check_run()?;
Ok(())
}()
.is_ok();