usr/bin/byobu-janitor: fix upgrades where one's window list might have

motd+shell, LP: #589715
This commit is contained in:
Dustin Kirkland 2010-08-23 17:18:53 -04:00
commit 78c079fbdd
2 changed files with 8 additions and 0 deletions

2
debian/changelog vendored
View file

@ -8,6 +8,8 @@ byobu (3.2) unreleased; urgency=low
* configure.ac: POSIX sed doesn't include -i option, LP: #619328, #622640 * configure.ac: POSIX sed doesn't include -i option, LP: #619328, #622640
* usr/bin/byobu-janitor: improve dash replacement in status config, * usr/bin/byobu-janitor: improve dash replacement in status config,
LP: #598488 LP: #598488
* usr/bin/byobu-janitor: fix upgrades where one's window list might have
motd+shell, LP: #589715
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 03 Aug 2010 15:19:23 -0400 -- Dustin Kirkland <kirkland@ubuntu.com> Tue, 03 Aug 2010 15:19:23 -0400

View file

@ -151,5 +151,11 @@ if grep -qs " $PKG-launcher$" "$HOME"/.profile; then
$PKG-launcher-install $PKG-launcher-install
fi fi
# Affects: Upgrades from <= byobu-2.78 which might have "motd+shell"
# in their window list; update this to just "shell"
if grep -qs "motd+shell" "$HOME/.$PKG/windows"; then
sed -i "s/motd+shell/shell/g" "$HOME/.$PKG/windows" || true
fi
# Clean up flag # Clean up flag
rm -f "$FLAG" rm -f "$FLAG"