From ed1cd37cbc18a55c4cbb181e849d603022c1b59b Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sun, 10 Jul 2011 17:47:24 +0100 Subject: [PATCH] * usr/bin/byobu-status-print: - save a few forks --- debian/changelog | 2 ++ usr/bin/byobu-status-print | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 9910c704..49e17ef7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -59,6 +59,8 @@ byobu (4.18) unreleased; urgency=low - re-add a couple of necessary backticks - update caption line to use new statusd cache - significantly reduce the number of mkdir -p commands + * usr/bin/byobu-status-print: + - save a few forks [ James Spencer ] * usr/lib/byobu/.constants: diff --git a/usr/bin/byobu-status-print b/usr/bin/byobu-status-print index 291d3c5b..86416739 100755 --- a/usr/bin/byobu-status-print +++ b/usr/bin/byobu-status-print @@ -20,16 +20,16 @@ PKG="byobu" [ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="/usr" || export BYOBU_PREFIX -. "${BYOBU_PREFIX}/lib/${PKG}/.constants" +. "${BYOBU_PREFIX}/lib/${PKG}/.dirs" -for i in $(cat "$BYOBU_CONFIG_DIR/status.$1"); do +while read i; do cache="$BYOBU_RUN_DIR/status/$i" if [ -s "$cache" ]; then read c < "$cache" printf "%s" "$c" case "$i" in - color|time) true ;; + color|menu|time) true ;; *) printf " " ;; esac fi -done +done < "$BYOBU_CONFIG_DIR/status.$1"