fix formatting again

This commit is contained in:
Dustin Kirkland 2016-06-04 09:34:17 -05:00
commit 771fa02d58
2 changed files with 7 additions and 3 deletions

1
debian/changelog vendored
View file

@ -2,6 +2,7 @@ byobu (5.109) unreleased; urgency=medium
* usr/lib/byobu/updates_available:
- add an asterisk icon
- fix formatting again
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 31 May 2016 10:03:15 -0500

View file

@ -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"