From 01ad9650123e450a5b9e38645ee424ec240f67db Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Fri, 2 Jul 2021 07:24:24 +0200 Subject: [PATCH] strip the 'v' --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8fb0716..d124af6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -269,8 +269,8 @@ async fn async_main(matches: clap::ArgMatches<'_>) -> Result<()> { fn version() -> &'static str { let out = git_version::git_version!(args = ["--tags", "--dirty=-dirty"]); - if out.starts_with("packetcrypt-") { - &out["packetcrypt-".len()..] + if out.starts_with("packetcrypt-v") { + &out["packetcrypt-v".len()..] } else { &out }