lanzatool: hide sbsign output on happy path

This commit is contained in:
nikstur 2022-11-26 15:34:48 +01:00
parent c441f5157e
commit 967f78d374
1 changed files with 3 additions and 2 deletions

View File

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