mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
only print user count if > 0
Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
e20fd9b6ce
commit
611d99a42d
2 changed files with 2 additions and 2 deletions
|
@ -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
2
debian/changelog
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue