From 977c758950ff4e5d827fab6314ce13ab8dce019f Mon Sep 17 00:00:00 2001 From: DrMaxNix Date: Sat, 25 May 2024 00:19:03 +0200 Subject: [PATCH] :bug: fix issues with ifup env --- lib/color | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/color b/lib/color index 4ed3a92..2d3d628 100644 --- a/lib/color +++ b/lib/color @@ -18,7 +18,7 @@ color_white="" ## ONLY IF PRINTING TO A TERMINAL ## if test -t 1; then # check count of supported colors - color_count=$(tput colors) + color_count=$(TERM=${TERM:-"dumb"} tput colors) if [[ ! -z "$color_count" && "$color_count" -ge 8 ]]; then color_bold="$(tput bold)" color_underline="$(tput smul)"