only print user count if > 0

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-09-21 11:27:23 -07:00
commit 611d99a42d
2 changed files with 2 additions and 2 deletions

View file

@ -28,4 +28,4 @@ fi
# Note: we'd like to use pgrep -c, however, this isn't available in
# busybox and some distro's pgrep (and it doesn't exit non-zero).
count=`pgrep -f "sshd:.*@" | wc -l` || exit 0
printf "\005{=b wr}%d\005{-}\005{= wr}#\005{-} " $count
[ $count -gt 0 ] && printf "\005{=b wr}%d\005{-}\005{= wr}#\005{-} " $count

2
debian/changelog vendored
View file

@ -8,7 +8,7 @@ byobu (2.34) unreleased; urgency=low
fixes, updating the names of the utilities to use "byobu" rather than
"screen"
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 21 Sep 2009 11:04:11 -0700
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 21 Sep 2009 11:27:09 -0700
byobu (2.33-0ubuntu1) karmic; urgency=low