From b1b8fb70b94bbf7747d40fd757a48c08819d951e Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Thu, 11 Aug 2011 05:37:59 -0500 Subject: [PATCH] * usr/bin/byobu: - clean up the backend determination a little --- debian/changelog | 3 ++- usr/bin/byobu | 17 ++++++----------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/debian/changelog b/debian/changelog index 90d9fe5f..6f93e001 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ byobu (4.29) unreleased; urgency=low - * UNRELEASED + * usr/bin/byobu: + - clean up the backend determination a little -- Dustin Kirkland Wed, 10 Aug 2011 18:24:27 -0500 diff --git a/usr/bin/byobu b/usr/bin/byobu index 458ef300..3dde74d8 100755 --- a/usr/bin/byobu +++ b/usr/bin/byobu @@ -34,22 +34,17 @@ if [ "$#" = "1" ]; then esac fi -case "$0" in - *byobu-screen) - export BYOBU_BACKEND="screen" - exec $PKG "$@" - ;; - *byobu-tmux) - export BYOBU_BACKEND="tmux" - exec $PKG "$@" - ;; -esac - # Check if we're being autolaunched, and this user explicitly does not want it. if [ "$0" = "/etc/profile.d/Z98-$PKG.sh" ] && [ -r "$BYOBU_CONFIG_DIR/disable-autolaunch" ]; then exit 0 fi +# Determine backend +case "$0" in + *byobu-screen) export BYOBU_BACKEND="screen" ;; + *byobu-tmux) export BYOBU_BACKEND="tmux" ;; +esac + # Sanitize the environment byobu-janitor --force