From 108583b907964d6572b09ae6ba008247e0a0de77 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Mon, 1 Jun 2009 08:59:56 -0500 Subject: [PATCH] * screen-launcher-install: handle non-interactive shells correctly, LP: #380761 Signed-off-by: Dustin Kirkland --- debian/changelog | 5 +++-- screen-launcher-install | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index b5c0a4cb..f141dbdd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,9 +9,10 @@ byobu (2.6) unreleased; urgency=low * byobu: If the user is running byobu with some arguments, but has not selected their profile yet, don't bother them with profile selection at this time, LP: #330322 + * screen-launcher-install: handle non-interactive shells correctly, + LP: #380761 - - -- Dustin Kirkland Mon, 01 Jun 2009 08:22:57 -0500 + -- Dustin Kirkland Mon, 01 Jun 2009 08:59:15 -0500 byobu (2.5-0ubuntu1) karmic; urgency=low diff --git a/screen-launcher-install b/screen-launcher-install index b5904fa9..af4757d8 100755 --- a/screen-launcher-install +++ b/screen-launcher-install @@ -23,7 +23,7 @@ PKG="byobu" install_screen_launcher() { dest=$1 launcher="/usr/bin/screen-launcher" - launcher_line="[ -x $launcher ] && $launcher" + launcher_line="`echo \$- | grep -qs i` && [ -x $launcher ] && $launcher" # Add it at the end echo "$launcher_line" >> "$dest" }