Skip to content

Commit

Permalink
strip the 'v'
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdelisle committed Jul 2, 2021
1 parent cc8fd25 commit 01ad965
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 01ad965

Please sign in to comment.