Skip to content
Snippets Groups Projects
Commit 327f7418 authored by Stephen D's avatar Stephen D
Browse files

preserve exit code

parent 53cc1f01
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04" ...@@ -10,7 +10,7 @@ checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04"
[[package]] [[package]]
name = "cargo-gg" name = "cargo-gg"
version = "0.1.0" version = "0.1.1"
dependencies = [ dependencies = [
"anyhow", "anyhow",
] ]
[package] [package]
name = "cargo-gg" name = "cargo-gg"
version = "0.1.0" version = "0.1.1"
edition = "2021" edition = "2021"
repository = "https://gitlab.scd31.com/stephen/cargo-gg" repository = "https://gitlab.scd31.com/stephen/cargo-gg"
license = "MIT" license = "MIT"
......
use std::{env, fs::File, process::Command}; use std::{
env,
fs::File,
process::{exit, Command},
};
fn main() -> anyhow::Result<()> { fn main() -> anyhow::Result<()> {
let mut arg_iter = env::args().peekable(); let mut arg_iter = env::args().peekable();
...@@ -28,5 +32,5 @@ fn main() -> anyhow::Result<()> { ...@@ -28,5 +32,5 @@ fn main() -> anyhow::Result<()> {
let _ = File::create(path); let _ = File::create(path);
} }
Ok(()) exit(code);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment