mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* usr/lib/byobu/include/common:
- simplify backend detection
This commit is contained in:
parent
f1f8844a33
commit
cf84385079
2 changed files with 7 additions and 6 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -7,6 +7,8 @@ byobu (5.64) unreleased; urgency=low
|
||||||
* etc/byobu/backend, usr/lib/byobu/include/common:
|
* etc/byobu/backend, usr/lib/byobu/include/common:
|
||||||
- really default to tmux, at this point
|
- really default to tmux, at this point
|
||||||
- tmux was the default in the previous LTS
|
- tmux was the default in the previous LTS
|
||||||
|
* usr/lib/byobu/include/common:
|
||||||
|
- simplify backend detection
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 07 Nov 2013 11:55:15 -0600
|
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 07 Nov 2013 11:55:15 -0600
|
||||||
|
|
||||||
|
|
|
@ -34,12 +34,11 @@ if [ -z "${BYOBU_INCLUDED_LIBS}" ]; then
|
||||||
# Just in case there's no config file at all
|
# Just in case there's no config file at all
|
||||||
if [ -z "${BYOBU_BACKEND}" ]; then
|
if [ -z "${BYOBU_BACKEND}" ]; then
|
||||||
# New byobu configuration, default to tmux
|
# New byobu configuration, default to tmux
|
||||||
for i in tmux screen; do
|
if $BYOBU_TEST tmux >/dev/null; then
|
||||||
$BYOBU_TEST $i >/dev/null && BYOBU_BACKEND="$i" && break
|
BYOBU_BACKEND="tmux"
|
||||||
done
|
elif $BYOBU_TEST screen >/dev/null; then
|
||||||
unset i
|
BYOBU_BACKEND="screen"
|
||||||
fi
|
else
|
||||||
if ! $BYOBU_TEST "$BYOBU_BACKEND" >/dev/null; then
|
|
||||||
printf "%s\n" "ERROR: $PKG won't work without tmux or screen installed" 1>&2
|
printf "%s\n" "ERROR: $PKG won't work without tmux or screen installed" 1>&2
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue