From fbd6d9d43f8a57b9e0a3d18a5b1e4e0db33386cc Mon Sep 17 00:00:00 2001 From: TudbuT Date: Fri, 4 Aug 2023 23:48:23 +0200 Subject: [PATCH] fix process waiting things --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/main.rs | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c8327bf..cbe05d0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -22,7 +22,7 @@ checksum = "b03f7fbd470aa8b3ad163c85cce8bccfc11cc9c44ef12da0a4eddd98bd307352" [[package]] name = "spl" -version = "0.1.6" +version = "0.1.8" dependencies = [ "multicall", "once_cell", diff --git a/Cargo.toml b/Cargo.toml index ad9906a..1eebd97 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "spl" -version = "0.1.7" +version = "0.1.8" edition = "2021" description = "Stack Pogramming Language: A simple, concise scripting language." license = "MIT" diff --git a/src/main.rs b/src/main.rs index b1772ad..e487b03 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,8 +35,9 @@ fn main() { } else { let mut args: Vec = args.collect(); args.insert(0, file); - app.execute(args).unwrap(); + let mut command = app.execute(args).unwrap(); app.delete(); + command.wait().unwrap(); } return;