about summary refs log tree commit diff stats
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/by-name/fu/fupdate/src/main.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/pkgs/by-name/fu/fupdate/src/main.rs b/pkgs/by-name/fu/fupdate/src/main.rs
index e664628a..c73f2777 100644
--- a/pkgs/by-name/fu/fupdate/src/main.rs
+++ b/pkgs/by-name/fu/fupdate/src/main.rs
@@ -33,16 +33,12 @@ fn main() -> Result<(), anyhow::Error> {
 
         // println!("Running: `fupdate-{command} {}`", args.join(" "));
 
-        let mut child = Command::new(format!("fupdate-{command}"))
+        let child = Command::new(format!("fupdate-{command}"))
             .args(args)
-            .spawn()
+            .status()
             .with_context(|| format!("Failed to spawn `fupdate-{command}`"))?;
 
-        if !child
-            .wait()
-            .with_context(|| format!("Failed to wait for `fupdate-{command}` to finish"))?
-            .success()
-        {
+        if !child.success() {
             bail!("Command `fupdate-{command} {}` failed!", args.join(" "));
         }
     }