From a6b63b96f9a5f07dabbe195b16d00d778d3246ff Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 21 Mar 2023 23:39:09 +0100 Subject: Fail gracefully if `git` does not exist --- cli/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/src/main.rs') diff --git a/cli/src/main.rs b/cli/src/main.rs index 3f41ac78..dfb13aaa 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -156,7 +156,7 @@ fn print_help(help: &'static str) -> ! { /// Print the version hash and quit. fn print_version() -> ! { - println!("typst {}", env!("TYPST_HASH")); + println!("typst {}", env!("TYPST_VERSION")); std::process::exit(0); } -- cgit v1.2.3