diff --git a/src/flows/core.rs b/src/flows/core.rs index c2814ed..85eb703 100644 --- a/src/flows/core.rs +++ b/src/flows/core.rs @@ -187,7 +187,8 @@ pub fn main(variant: Variant, config: Config, contains_key: bool) -> Result<(), Command::new("bash") .arg("-c") .arg(&interpolated_snippet[..]) - .spawn()?; + .spawn()? + .wait()?; } Ok(())