mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-02-23 19:48:16 +00:00
Merge pull request #4645 from rdwebdesign/color_debug_web
Generate colorful debug logs to web interface
This commit is contained in:
commit
0631cb4984
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
# Determine if terminal is capable of showing colors
|
# 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
|
# Bold and underline may not show up on all clients
|
||||||
# If something MUST be emphasized, use both
|
# If something MUST be emphasized, use both
|
||||||
COL_BOLD='[1m'
|
COL_BOLD='[1m'
|
||||||
|
|
Loading…
Add table
Reference in a new issue