Revision 23855,
336 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
*
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | # We need to strip out HTML entities because zenity takes something |
---|
4 | # that pretends to be HTML |
---|
5 | motd=$(get_message -new | sed -e 's/&/\&/g' \ |
---|
6 | -e 's/</\</g' \ |
---|
7 | -e 's/>/\>/g' \ |
---|
8 | -e 's/"/\"/g' \ |
---|
9 | -e "s/'/\'/g") |
---|
10 | [ -n "$motd" ] && zenity --no-wrap --info --text=" |
---|
11 | Athena message of the day: |
---|
12 | $motd" |
---|
Note: See
TracBrowser
for help on using the repository browser.