lanzatool: write sbsign output to stdout

This commit is contained in:
nikstur 2022-12-30 03:39:39 +01:00
parent d4c5af23fe
commit 463d9496bf
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
use std::ffi::OsString;
use std::io::Write;
use std::path::{Path, PathBuf};
use std::process::Command;
@ -31,7 +32,7 @@ impl KeyPair {
let output = Command::new("sbsign").args(&args).output()?;
if !output.status.success() {
print!("{:?}", output.stderr);
std::io::stderr().write_all(&output.stderr).unwrap();
return Err(anyhow::anyhow!(
"Failed to sign file using sbsign with args `{:?}`",
&args