webbuild: reallow html tags in processtail to display colors, only filter <[/]pre> tags for now

This commit is contained in:
Silvan Calarco 2014-11-22 12:35:08 +01:00
parent 367e2f7dee
commit f492d02d7d

View File

@ -56,7 +56,7 @@ function showlog() {
echo -n "<pre>" echo -n "<pre>"
if [ "$LOGTYPE" = "processtail" ]; then if [ "$LOGTYPE" = "processtail" ]; then
echo -n "<!-- SCROLL -->" echo -n "<!-- SCROLL -->"
tail -n +0 -f $f --pid $PROCESSPID | stdbuf -oL sed "s|<|\&lt;|g" tail -n +0 -f $f --pid $PROCESSPID | stdbuf -oL sed "s|<\([/]pre>\)|\&lt;\1|g"
echo -n "<!-- ENDSCROLL -->" echo -n "<!-- ENDSCROLL -->"
else else
if [ $LOGFILESIZE -lt 2097152 ]; then if [ $LOGFILESIZE -lt 2097152 ]; then