Commit 0a79fc62 authored by Carlo Landmeter's avatar Carlo Landmeter

Allow forcing of colored output

In some cases (ie drone ci) there is no tty available but its still
possible to display colors in the webui.
parent 376ccc5b
......@@ -243,7 +243,9 @@ enable_colors() {
BLUE="\033[1;34m"
}
if [ -n "$USE_COLORS" ] && [ -t 1 ]; then
if [ "$USE_COLORS" = force ]; then
enable_colors
elif [ -n "$USE_COLORS" ] && [ -t 1 ]; then
enable_colors
else
disable_colors
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment