mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
usr/bin/byobu-launch, usr/bin/byobu-launcher-install,
usr/bin/byobu-launcher-uninstall:
This commit is contained in:
parent
9e26774707
commit
b5a0a1249a
4 changed files with 6 additions and 4 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -7,6 +7,9 @@ byobu (2.81) unreleased; urgency=low
|
||||||
- usr/lib/services
|
- usr/lib/services
|
||||||
- usr/bin/byobu-status-detail
|
- usr/bin/byobu-status-detail
|
||||||
- usr/bin/byobu-reconnect-sockets
|
- usr/bin/byobu-reconnect-sockets
|
||||||
|
- usr/bin/byobu-launch, usr/bin/byobu-launcher-install,
|
||||||
|
usr/bin/byobu-launcher-uninstall:
|
||||||
|
|
||||||
* usr/bin/byobu-config, usr/share/doc/byobu/help.txt: improve help
|
* usr/bin/byobu-config, usr/share/doc/byobu/help.txt: improve help
|
||||||
text, per feedback from Turnkey Linux users
|
text, per feedback from Turnkey Linux users
|
||||||
|
|
||||||
|
|
|
@ -17,4 +17,4 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
`echo \$- | grep -qs i` && byobu-launcher && exit 0
|
case "$-" in *i*) byobu-launcher && exit 0; esac;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
PKG="byobu"
|
PKG="byobu"
|
||||||
|
|
||||||
install_launcher() {
|
install_launcher() {
|
||||||
echo "\`echo \$- | grep -qs i\` && $PKG-launcher && exit 0" >> "$1"
|
printf "%s\n" 'case "$-" in *i*) byobu-launcher && exit 0; esac;' >> "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Sanitize the environment
|
# Sanitize the environment
|
||||||
|
|
|
@ -23,8 +23,7 @@ PKG="byobu"
|
||||||
remove_launcher() {
|
remove_launcher() {
|
||||||
dest=$1
|
dest=$1
|
||||||
if [ -w "$dest" ]; then
|
if [ -w "$dest" ]; then
|
||||||
sed -i "/$PKG-launcher$/d" "$dest"
|
sed -i -e "/$PKG-launcher/d" -e "/screen-launcher/d" "$dest"
|
||||||
sed -i "/screen-launcher$/d" "$dest"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue