🐛 fix issues with ifup env
This commit is contained in:
parent
146c1d5c3a
commit
977c758950
@ -18,7 +18,7 @@ color_white=""
|
|||||||
## ONLY IF PRINTING TO A TERMINAL ##
|
## ONLY IF PRINTING TO A TERMINAL ##
|
||||||
if test -t 1; then
|
if test -t 1; then
|
||||||
# check count of supported colors
|
# 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
|
if [[ ! -z "$color_count" && "$color_count" -ge 8 ]]; then
|
||||||
color_bold="$(tput bold)"
|
color_bold="$(tput bold)"
|
||||||
color_underline="$(tput smul)"
|
color_underline="$(tput smul)"
|
||||||
|
Loading…
Reference in New Issue
Block a user