fix typos in byobu-status

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-06-19 17:32:59 -05:00
commit 64c4258553

View file

@ -43,9 +43,9 @@ DIR="/usr/lib/$PKG"
[ -d "$HOME/.$PKG/bin" ] && DIR="$HOME/.$PKG/bin" [ -d "$HOME/.$PKG/bin" ] && DIR="$HOME/.$PKG/bin"
# Source global status configuration # Source global status configuration
. "/etc/$PKG/statusrc" || true [ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
# Source local status configuration # Source local status configuration
. "$HOME/.$PKG/status" || sed -i "s/-/_/g" "$HOME/.$PKG/status" || true [ -r "$HOME/.$PKG/status" ] && . "$HOME/.$PKG/status"
export P="$1" export P="$1"
if [ "$P" = "--detail" ]; then if [ "$P" = "--detail" ]; then
@ -64,5 +64,5 @@ if [ "$P" = "--detail" ]; then
else else
eval x=\$$P || exit 1 eval x=\$$P || exit 1
[ "$x" = "1" ] || exit 0 [ "$x" = "1" ] || exit 0
[ -x "$DIR"/"$P" ] exec "$DIR"/"$P" [ -x "$DIR/$P" ] && exec "$DIR/$P"
fi fi