summaryrefslogtreecommitdiff
path: root/cli/src/main.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-03-21 23:39:09 +0100
committerLaurenz <laurmaedje@gmail.com>2023-03-21 23:39:40 +0100
commita6b63b96f9a5f07dabbe195b16d00d778d3246ff (patch)
tree8ffacc8d1797a77bf1f3c9be13619cf192f7f4f2 /cli/src/main.rs
parentb934a2fd83d63fc115c01f959e888c7bc1aa87e4 (diff)
Fail gracefully if `git` does not exist
Diffstat (limited to 'cli/src/main.rs')
-rw-r--r--cli/src/main.rs2
1 files changed, 1 insertions, 1 deletions
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);
}