* hostname, ip_address, mem_available: make sure statusrc exists

before sourcing it, LP: #407478


Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-08-02 09:56:29 -05:00
commit 206fd37324
4 changed files with 7 additions and 5 deletions

View file

@ -24,7 +24,7 @@ if [ "$1" = "--detail" ]; then
exit 0
fi
. "/etc/$PKG/statusrc"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
. "$HOME/.$PKG/status"
[ "$whoami" = "1" ] && at="@"

View file

@ -24,7 +24,7 @@ if [ "$1" = "--detail" ]; then
exit 0
fi
. "/etc/$PKG/statusrc"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
. "$HOME/.$PKG/status"
[ "$hostname" = "1" ] && space=" "
[ "$whoami" = "1" ] && space=" "

View file

@ -24,7 +24,7 @@ if [ "$1" = "--detail" ]; then
exit 0
fi
. "/etc/$PKG/statusrc"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
. "$HOME/.$PKG/status"
[ "$mem_used" = "1" ] && comma="," || whitespace=" "

6
debian/changelog vendored
View file

@ -1,8 +1,10 @@
byobu (2.25) unreleased; urgency=low
* UNRELEASED
* hostname, ip_address, mem_available: make sure statusrc exists
before sourcing it, LP: #407478
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 29 Jul 2009 23:54:52 -0500
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 02 Aug 2009 09:54:39 -0500
byobu (2.24-0ubuntu1) karmic; urgency=low