From bb358815b96c45143ed7ddbe8bc6b5a6415d4997 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Thu, 17 Jun 2010 00:18:02 -0500 Subject: [PATCH] save a couple of forks --- usr/bin/byobu-status | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/bin/byobu-status b/usr/bin/byobu-status index 6ad083bf..03e575f6 100755 --- a/usr/bin/byobu-status +++ b/usr/bin/byobu-status @@ -64,9 +64,9 @@ case "$P" in --detail) VER= if which dpkg-query >/dev/null; then - VER=`dpkg-query --show $PKG | awk '{print "-" $2 }'` + VER=$(set -- $(dpkg-query --show $PKG); echo "$2") fi - printf "$PKG$VER Detailed Status Navigation\n Expand all - zr\t\tCollapse all - zm\n Expand one - zo\t\tCollapse one - zc\n\n" + printf "$PKG-$VER Detailed Status Navigation\n Expand all - zr\t\tCollapse all - zm\n Expand one - zo\t\tCollapse one - zc\n\n" for i in "/usr/lib/$PKG"/* "$HOME/.$PKG/bin"/*; do i=${i##*/} [ "$i" = "menu" ] && continue