Skip to content

Commit

Permalink
Propagate tool exit code (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yumacide authored Aug 5, 2022
1 parent e69bd3c commit 394fe22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ fn run() -> anyhow::Result<()> {
for manifest in &manifests {
if let Some(tool_id) = manifest.tools.get(exe_name.as_str()) {
let args = std::env::args().skip(1).collect();
tool_storage.run(tool_id, args)?;
return Ok(());
std::process::exit(tool_storage.run(tool_id, args)?);
}
}

Expand Down

0 comments on commit 394fe22

Please sign in to comment.