Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRD WebDesign <github@rdwebdesign.com.br>2022-03-12 08:58:46 +0300
committerRD WebDesign <github@rdwebdesign.com.br>2022-03-12 08:58:46 +0300
commit40b96e673b6af18c3ede288fc3e968e36f661238 (patch)
tree9ae830efe1e4f6d379b336e8b5d1a5aa0032bcce
parent899cac0aac8e86f36f5b9aaac67c58922be8c79e (diff)
Allows colorful debug logs via web interface
Note: needs the AdminLTE code changes to work. Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
-rw-r--r--advanced/Scripts/COL_TABLE2
1 files changed, 1 insertions, 1 deletions
diff --git a/advanced/Scripts/COL_TABLE b/advanced/Scripts/COL_TABLE
index d76be68c..2d2b074b 100644
--- a/advanced/Scripts/COL_TABLE
+++ b/advanced/Scripts/COL_TABLE
@@ -1,5 +1,5 @@
# Determine if terminal is capable of showing colors
-if [[ -t 1 ]] && [[ $(tput colors) -ge 8 ]]; then
+if ([[ -t 1 ]] && [[ $(tput colors) -ge 8 ]]) || [[ "${WEBCALL}" ]]; then
# Bold and underline may not show up on all clients
# If something MUST be emphasized, use both
COL_BOLD=''