* usr/lib/byobu/raid:

- fix coloring, needed grouping around colored print
This commit is contained in:
Dustin Kirkland 2011-06-27 13:33:30 +00:00
commit dd2284a816
2 changed files with 5 additions and 1 deletions

2
debian/changelog vendored
View file

@ -34,6 +34,8 @@ byobu (4.14) unreleased; urgency=low
- add trailing whitespace back
* usr/lib/byobu/.shutil:
- fix slow/lag associated with testing for metadata server
* usr/lib/byobu/raid:
- fix coloring, needed grouping around colored print
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 16 Jun 2011 16:16:29 -0500

View file

@ -36,7 +36,9 @@ __raid() {
msg="$msg,$p";;
esac
done < /proc/mdstat
[ -z "$msg" ] || color B w r; printf "%s" "$msg"; color --
if [ -n "$msg" ]; then
color B w r; printf "%s" "$msg"; color --
fi
}
# vi: syntax=sh ts=4 noexpandtab