🐛 fix issues with ifup env

This commit is contained in:
DrMaxNix 2024-05-25 00:19:03 +02:00
parent 146c1d5c3a
commit 977c758950

View File

@ -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)"