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