From f492d02d7de4f4507cb20e059307977deb094a16 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 22 Nov 2014 12:35:08 +0100 Subject: [PATCH] webbuild: reallow html tags in processtail to display colors, only filter <[/]pre> tags for now --- webbuild/webbuild-functions-private | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webbuild/webbuild-functions-private b/webbuild/webbuild-functions-private index 3f0e282..b5a1052 100644 --- a/webbuild/webbuild-functions-private +++ b/webbuild/webbuild-functions-private @@ -56,7 +56,7 @@ function showlog() { echo -n "
"
       if [ "$LOGTYPE" = "processtail" ]; then
          echo -n ""
-         tail -n +0 -f $f --pid $PROCESSPID | stdbuf -oL sed "s|<|\<|g"
+         tail -n +0 -f $f --pid $PROCESSPID | stdbuf -oL sed "s|<\([/]pre>\)|\<\1|g"
          echo -n ""
       else
          if [ $LOGFILESIZE -lt 2097152 ]; then