diff --git a/byobu-status b/byobu-status index c4d34eef..7b0b4507 100755 --- a/byobu-status +++ b/byobu-status @@ -43,12 +43,7 @@ case "$P" in VER=`dpkg-query --show $PKG | awk '{print "-" $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" - if [ -d "$HOME/.$PKG/bin" ]; then - DIR="$HOME/.$PKG/bin" - else - DIR="/usr/lib/$PKG" - fi - for i in `ls "$DIR"`; do + for i in $(ls "/usr/lib/$PKG" "$HOME/.$PKG/bin" 2>/dev/null); do [ "$i" = "menu" ] && continue script=`find_script $i` short=`$script --short | sed 's/^\s*//' | sed 's/\s*$//' | sed 's/.{[^}]*}//g'` || true