* screen-launcher-install: handle non-interactive shells correctly,

LP: #380761


Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-06-01 08:59:56 -05:00
commit 108583b907
2 changed files with 4 additions and 3 deletions

5
debian/changelog vendored
View file

@ -9,9 +9,10 @@ byobu (2.6) unreleased; urgency=low
* byobu: If the user is running byobu with some arguments, but has * byobu: If the user is running byobu with some arguments, but has
not selected their profile yet, don't bother them with profile not selected their profile yet, don't bother them with profile
selection at this time, LP: #330322 selection at this time, LP: #330322
* screen-launcher-install: handle non-interactive shells correctly,
LP: #380761
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 01 Jun 2009 08:59:15 -0500
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 01 Jun 2009 08:22:57 -0500
byobu (2.5-0ubuntu1) karmic; urgency=low byobu (2.5-0ubuntu1) karmic; urgency=low

View file

@ -23,7 +23,7 @@ PKG="byobu"
install_screen_launcher() { install_screen_launcher() {
dest=$1 dest=$1
launcher="/usr/bin/screen-launcher" launcher="/usr/bin/screen-launcher"
launcher_line="[ -x $launcher ] && $launcher" launcher_line="`echo \$- | grep -qs i` && [ -x $launcher ] && $launcher"
# Add it at the end # Add it at the end
echo "$launcher_line" >> "$dest" echo "$launcher_line" >> "$dest"
} }