Propagate error code.

pull/7/head
Tomasz Drwięga 5 years ago
parent fad8aef22f
commit bd053415e1
No known key found for this signature in database
GPG Key ID: B2BA26B1C688F8FC

@ -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))
}
}

Loading…
Cancel
Save