Skip to content

Commit

Permalink
Merge pull request #70 from moh-eulith/master
Browse files Browse the repository at this point in the history
Fix exist status handling
  • Loading branch information
roynalnaruto authored Jan 13, 2023
2 parents e274ac1 + 039e13f commit 97c4021
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/solc/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fn main() -> anyhow::Result<()> {
let mut version_path = svm_lib::version_path(version.to_string().as_str());
version_path.push(format!("solc-{}", version.to_string().as_str()));

Command::new(version_path).args(args).spawn()?;

Ok(())
let status = Command::new(version_path).args(args).status()?;
let code = status.code().unwrap_or(-1);
std::process::exit(code);
}

0 comments on commit 97c4021

Please sign in to comment.