chore: remove double v's in --version

This commit is contained in:
Stéphane Lesimple 2022-01-04 21:21:00 +01:00
parent 70ed531ab0
commit 6a0b7705c6

View File

@ -355,6 +355,7 @@ if ($opt_version) {
my $cmd = run_cmd(silent_stderr => 1, cmd => [qw{ git -C }, $dir, qw{ describe --tags --dirty }]);
if ($cmd->{status} == 0 && $cmd->{stdout}) {
$ver = $cmd->{stdout}[0];
$ver =~ s/^v//;
}
} ## end if (-d "$dir/.git")