mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 14:03:18 -07:00
remove_launcher: just keep any comments, instead of duplicating/printing
them.
This commit is contained in:
parent
d9eaf1cedd
commit
4501fcf3ab
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue