mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -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() {
|
remove_launcher() {
|
||||||
dest=$1
|
dest=$1
|
||||||
if [ -w "$dest" ]; then
|
if [ -w "$dest" ]; then
|
||||||
# print any comments, and remove lines invoking byobu:
|
# keep any comments, and remove lines invoking byobu:
|
||||||
$SED -i -e '/^\s*#/p' -e "/\b$PKG-launch\$/d" -e "/ screen-launch/d" "$dest"
|
$SED -i -e '/^\s*#/n' -e "/\b$PKG-launch\$/d" -e "/ screen-launch/d" "$dest"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue