mirror of
https://github.com/smxi/inxi.git
synced 2025-04-17 23:29:11 +00:00
small bug fix, forgot to trim the - if no patch release
This commit is contained in:
parent
6aace06af4
commit
f9e4b79246
1 changed files with 1 additions and 1 deletions
2
inxi
2
inxi
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue