From 771fa02d584d86e2976ddf255781e375acade553 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sat, 4 Jun 2016 09:34:17 -0500 Subject: [PATCH] fix formatting again --- debian/changelog | 1 + usr/lib/byobu/updates_available | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 097be2a5..8041f3a8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ byobu (5.109) unreleased; urgency=medium * usr/lib/byobu/updates_available: - add an asterisk icon + - fix formatting again -- Dustin Kirkland Tue, 31 May 2016 10:03:15 -0500 diff --git a/usr/lib/byobu/updates_available b/usr/lib/byobu/updates_available index 1801c8c1..afd295cf 100755 --- a/usr/lib/byobu/updates_available +++ b/usr/lib/byobu/updates_available @@ -21,12 +21,15 @@ ___print_updates() { local u= s= - if [ -n "$(lsmod | grep ^kpatch_livepatch_)" ]; then - color b r W; printf "*"; color - - fi read u s < "$1" + if [ -n "$(lsmod | grep ^kpatch_livepatch_)" ]; then + color b r W; printf "*"; color -- + fi if [ -n "$u" ]; then if [ "$u" -gt 0 ]; then + if [ -n "$(lsmod | grep ^kpatch_livepatch_)" ]; then + color b r W; printf "*"; color - + fi color b r W; printf "%d" "$u"; color -; color r W if [ -n "$s" ] && [ "$s" -gt 0 ]; then printf "$ICON_SECURITY"