usr/bin/byobu-janitor: improve dash replacement in status config,

LP: #598488
This commit is contained in:
Dustin Kirkland 2010-08-23 17:09:57 -04:00
commit aa54591fcf
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View file

@ -6,6 +6,8 @@ byobu (3.2) unreleased; urgency=low
* usr/lib/byobu/network, usr/share/man/man1/byobu.1: allow for
configuration of network traffic in [kM]ps, LP: #578377
* configure.ac: POSIX sed doesn't include -i option, LP: #619328, #622640
* usr/bin/byobu-janitor: improve dash replacement in status config,
LP: #598488
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 03 Aug 2010 15:19:23 -0400

View file

@ -111,7 +111,7 @@ fi
# The status scripts used to have hyphens in their name, but now use
# underscores such that we can source the file as a shell snippet;
# fix existing status configuration.
sed -i "s/\(.*\)-\(.*\)=/\1_\2=/g" "$HOME/.$PKG/status"
sed -i "s/\([^=]+\)-\([^=]+\)=/\1_\2=/g" "$HOME/.$PKG/status"
sed -i "s/^disk-.*=/disk=/" "$HOME/.$PKG/status"
sed -i "s/^network-.*=/network=/" "$HOME/.$PKG/status"