Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b62e36fa authored by Ted Bauer's avatar Ted Bauer
Browse files

Don't print a line if aflags output is empty

Bug: 385136353
Test: m
Change-Id: I1f7d6d1d65375c5a2927b58bd87fed82e602ac0c
parent 0bcbebc0
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -320,7 +320,10 @@ fn invoke_updatable_aflags() {
        .wait_with_output()
        .expect("failed to execute command");

    println!("{}", String::from_utf8_lossy(&output.stdout).trim());
    let output_str = String::from_utf8_lossy(&output.stdout).trim().to_string();
    if !output_str.is_empty() {
        println!("{}", output_str);
    }
}

fn main() -> Result<()> {