From 967f78d374c1518fca54a7785d11bff0c5baa3eb Mon Sep 17 00:00:00 2001 From: nikstur Date: Sat, 26 Nov 2022 15:34:48 +0100 Subject: [PATCH] lanzatool: hide sbsign output on happy path --- rust/lanzatool/src/signer.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rust/lanzatool/src/signer.rs b/rust/lanzatool/src/signer.rs index 2ad95bf..d3e6420 100644 --- a/rust/lanzatool/src/signer.rs +++ b/rust/lanzatool/src/signer.rs @@ -29,9 +29,10 @@ impl Signer { utils::path_to_string(to), ]; - let status = Command::new("sbsign").args(&args).status()?; + let output = Command::new("sbsign").args(&args).output()?; - if !status.success() { + if !output.status.success() { + print!("{:?}", output.stderr); return Err(anyhow::anyhow!( "Failed to sign file using sbsign with args `{:?}`", &args