diff --git a/debian/changelog b/debian/changelog index 997e20e0..eebd1746 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,6 @@ byobu (2.81) unreleased; urgency=low - * UNRELEASED + * usr/lib/byobu/custom: save a fork -- Dustin Kirkland Wed, 16 Jun 2010 12:46:29 -0500 diff --git a/usr/lib/byobu/custom b/usr/lib/byobu/custom index b9fc8742..8a47f20a 100755 --- a/usr/lib/byobu/custom +++ b/usr/lib/byobu/custom @@ -38,11 +38,14 @@ for i in "$HOME"/.$PKG/bin/[0-9]*_*; do $i $@ > "$CACHE.$script" 2>/dev/null fi output=$(cat "$CACHE.$script") - if echo "$output" | grep -qs "$ESC{"; then - # User has formatted the colors - printf "$output" - else - # Default to inverted coloring - printf "$(color invert)$output$(color -) " - fi + case "$output" in + *"$ESC{"*) + # User has formatted the colors + printf "$output" + ;; + *) + # Default to inverted coloring + printf "$(color invert)$output$(color -) " + ;; + esac done