From e04eef68f0b81e0812549f5c644011ed196532fe Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sat, 28 May 2011 22:19:44 -0500 Subject: [PATCH] * usr/lib/byobu/custom: - ensure that you can run more than one custom script, LP: #789647 --- debian/changelog | 2 ++ usr/lib/byobu/custom | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 76e9ccc8..e8ee8b42 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,8 @@ byobu (4.7) unreleased; urgency=low * etc/byobu/statusrc: - revert recent change which enabled disk_io by default * close bug LP: #789408, which was fixed in the previous release + * usr/lib/byobu/custom: + - ensure that you can run more than one custom script, LP: #789647 -- Dustin Kirkland Sat, 28 May 2011 12:58:05 -0500 diff --git a/usr/lib/byobu/custom b/usr/lib/byobu/custom index 42c50a9d..d4c04621 100755 --- a/usr/lib/byobu/custom +++ b/usr/lib/byobu/custom @@ -44,11 +44,13 @@ for i in "$DATA/bin/"[0-9]*_*; do case "$output" in *"$ESC{"*) # User has formatted the colors - printf "$output" + OUTPUT="$OUTPUT$(printf "$output")" ;; *) # Default to inverted coloring - color invert; printf "%s" "$output"; color -- + OUTPUT="$OUTPUT$(color invert; printf "%s" "$output"; color --)" ;; esac done + +echo "$OUTPUT" | sed ':a;N;$!ba;s/\n//g'