mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
fix typos in byobu-status
Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
27b36c3fd6
commit
64c4258553
1 changed files with 4 additions and 4 deletions
|
@ -36,16 +36,16 @@ migrate() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# If the old config dir exists, but the new one doesn't, provide a migration mechanism.
|
# If the old config dir exists, but the new one doesn't, provide a migration mechanism.
|
||||||
[ -d "$HOME/.$OLDPKG"] && [ ! -d "$HOME/.$PKG" ] && migrate
|
[ -d "$HOME/.$OLDPKG" ] && [ ! -d "$HOME/.$PKG" ] && migrate
|
||||||
|
|
||||||
# Allow for local status scripts
|
# Allow for local status scripts
|
||||||
DIR="/usr/lib/$PKG"
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue