diff --git a/src/main.rs b/src/main.rs index 5e109fb..43b108f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -166,7 +166,7 @@ fn main() { ); info!("Starting build process."); - Command::new("ssh") + let output = Command::new("ssh") .arg("-t") .arg(&build_server) .arg(build_command) @@ -222,4 +222,8 @@ fn main() { exit(-6); }); } + + if !output.status.success() { + exit(output.status.code().unwrap_or(0)) + } }