mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
small bug fix, forgot to trim the - if no patch release
This commit is contained in:
parent
6aace06af4
commit
f9e4b79246
2
inxi
2
inxi
|
@ -14301,7 +14301,7 @@ sub get_self_version {
|
||||||
if ( $patch ne '' ){
|
if ( $patch ne '' ){
|
||||||
# for cases where it was for example: 00-b1 clean to -b1
|
# for cases where it was for example: 00-b1 clean to -b1
|
||||||
$patch =~ s/^[0]+-?//;
|
$patch =~ s/^[0]+-?//;
|
||||||
$patch = "-$patch";
|
$patch = "-$patch" if $patch;
|
||||||
}
|
}
|
||||||
eval $end if $b_log;
|
eval $end if $b_log;
|
||||||
return $self_version . $patch;
|
return $self_version . $patch;
|
||||||
|
|
Loading…
Reference in a new issue