From 4501fcf3ab523ca3cc18198bff7b99c56b835947 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 29 Sep 2011 09:27:08 +0200 Subject: [PATCH] remove_launcher: just keep any comments, instead of duplicating/printing them. --- usr/bin/byobu-launcher-uninstall | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/bin/byobu-launcher-uninstall b/usr/bin/byobu-launcher-uninstall index e63ecb99..9ad5b208 100755 --- a/usr/bin/byobu-launcher-uninstall +++ b/usr/bin/byobu-launcher-uninstall @@ -25,8 +25,8 @@ PKG="byobu" remove_launcher() { dest=$1 if [ -w "$dest" ]; then - # print any comments, and remove lines invoking byobu: - $SED -i -e '/^\s*#/p' -e "/\b$PKG-launch\$/d" -e "/ screen-launch/d" "$dest" + # keep any comments, and remove lines invoking byobu: + $SED -i -e '/^\s*#/n' -e "/\b$PKG-launch\$/d" -e "/ screen-launch/d" "$dest" fi }