* usr/bin/byobu-status-print:

- save a few forks
This commit is contained in:
Dustin Kirkland 2011-07-10 17:47:24 +01:00
commit ed1cd37cbc
2 changed files with 6 additions and 4 deletions

2
debian/changelog vendored
View file

@ -59,6 +59,8 @@ byobu (4.18) unreleased; urgency=low
- re-add a couple of necessary backticks - re-add a couple of necessary backticks
- update caption line to use new statusd cache - update caption line to use new statusd cache
- significantly reduce the number of mkdir -p commands - significantly reduce the number of mkdir -p commands
* usr/bin/byobu-status-print:
- save a few forks
[ James Spencer ] [ James Spencer ]
* usr/lib/byobu/.constants: * usr/lib/byobu/.constants:

View file

@ -20,16 +20,16 @@
PKG="byobu" PKG="byobu"
[ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="/usr" || export BYOBU_PREFIX [ -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" cache="$BYOBU_RUN_DIR/status/$i"
if [ -s "$cache" ]; then if [ -s "$cache" ]; then
read c < "$cache" read c < "$cache"
printf "%s" "$c" printf "%s" "$c"
case "$i" in case "$i" in
color|time) true ;; color|menu|time) true ;;
*) printf " " ;; *) printf " " ;;
esac esac
fi fi
done done < "$BYOBU_CONFIG_DIR/status.$1"