From 4f0683b655ab601dbe90bdcf4fcd4dd9fa0d2ce8 Mon Sep 17 00:00:00 2001 From: Mathias Gug Date: Fri, 4 Sep 2009 15:42:27 -0400 Subject: [PATCH] Check that byobu-launcher exists before calling it (chroots use the same .profile as the main system but may not have byobu installed). --- byobu-launcher-install | 2 +- debian/changelog | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/byobu-launcher-install b/byobu-launcher-install index f1240ec2..6f32b620 100755 --- a/byobu-launcher-install +++ b/byobu-launcher-install @@ -23,7 +23,7 @@ PKG="byobu" install_launcher() { dest=$1 launcher="byobu-launcher" - launcher_line="\`echo \$- | grep -qs i\` && $launcher" + launcher_line="\`echo \$- | grep -qs i\` && which $launcher > /dev/null && $launcher" # Add it at the end echo "$launcher_line" >> "$dest" # Hush login, since byobu will handle motd printing diff --git a/debian/changelog b/debian/changelog index f47bc58c..0ad955ea 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,7 +1,12 @@ byobu (2.31) unreleased; urgency=low + [ Dustin Kirkland ] * UNRELEASED + [ Mathias Gug ] + * Check that byobu-launcher exists before calling it (chroots use the same + .profile as the main system but may not have byobu installed). + -- Dustin Kirkland Mon, 31 Aug 2009 19:30:20 -0500 byobu (2.30-0ubuntu1) karmic; urgency=low