From f9e4b792468744b8b96bdc59898484564fc2fb86 Mon Sep 17 00:00:00 2001 From: Harald Hope Date: Tue, 20 Mar 2018 03:18:32 -0700 Subject: [PATCH] small bug fix, forgot to trim the - if no patch release --- inxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inxi b/inxi index ef8aa8a..20af30c 100755 --- a/inxi +++ b/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;