Wait on the results of exec
@@ -271,6 +271,7 @@ fn exec(_: &Lua, command: String) -> rlua::Result<()> {
Command::new(command).stdout(Stdio::null())
.spawn()
.expect("Could not spawn command")
+ .wait()
})
.expect("Unable to spawn thread");
Ok(())
