small bug fix, forgot to trim the - if no patch release

This commit is contained in:
Harald Hope 2018-03-20 03:18:32 -07:00
parent 6aace06af4
commit f9e4b79246

2
inxi
View file

@ -14301,7 +14301,7 @@ sub get_self_version {
if ( $patch ne '' ){
# for cases where it was for example: 00-b1 clean to -b1
$patch =~ s/^[0]+-?//;
$patch = "-$patch";
$patch = "-$patch" if $patch;
}
eval $end if $b_log;
return $self_version . $patch;