Revision 23855,
299 bytes
checked in by broder, 15 years ago
(diff) |
In displaymotd and displaylert, replace all instances of an HTML
special character on a line, not just the first.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[23027] | 1 | #!/bin/sh |
---|
| 2 | |
---|
[23854] | 3 | # zenity expects Pangotext, which is something like HTML, so we need |
---|
| 4 | # to strip entities |
---|
[23855] | 5 | lertmsg=$(lert | sed -e 's/&/\&/g' \ |
---|
| 6 | -e 's/</\</g' \ |
---|
| 7 | -e 's/>/\>/g' \ |
---|
| 8 | -e 's/"/\"/g' \ |
---|
| 9 | -e "s/'/\'/g") |
---|
[23027] | 10 | [ -n "$lertmsg" ] && zenity --no-wrap --info --text="$lertmsg" |
---|
Note: See
TracBrowser
for help on using the repository browser.