aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-31 00:39:48 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-31 00:39:48 +0200
commita0ec8a486ce7b6dbf1622c3aa4555e5ede1be1d3 (patch)
tree75c9e0f2e8f4e2f2a8e4394009cd100b157f46c6
parente00794a00569655792868bc812cb824c5f522e25 (diff)
downloadsbotools2-a0ec8a486ce7b6dbf1622c3aa4555e5ede1be1d3.tar.xz
sbocheck: limit is 80, so allow up to and including the limit
-rwxr-xr-xsbocheck4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbocheck b/sbocheck
index d6f654a..4e516ca 100755
--- a/sbocheck
+++ b/sbocheck
@@ -91,7 +91,7 @@ sub get_update_list {
$info->{upd_str} = $available;
my $str = sprintf "%s < %s", $current, $available;
- if (length($str) < 80) {
+ if (length($str) <= 80) {
$max = length($current) if length($current) > $max;
}
}
@@ -101,7 +101,7 @@ sub get_update_list {
my $info = $updates{$sbo};
my $str = sprintf "%s < %s", $info->{name_str}, $info->{upd_str};
- if (length($str) < 80) {
+ if (length($str) <= 80) {
$str = sprintf "%-*s < %s", $max, $info->{name_str}, $info->{upd_str};
my $adjust = 1;
while (length($str) > 80) {