diff --git a/extract_utils.sh b/extract_utils.sh index de62732..7d2785f 100644 --- a/extract_utils.sh +++ b/extract_utils.sh @@ -1800,7 +1800,7 @@ function colored_echo() { white|*) color=7 ;; # white or invalid color esac fi - tput setaf $color + if [ -t 1 ] ; then tput setaf $color; fi printf '%s\n' "$*" - tput sgr0 + if [ -t 1 ] ; then tput sgr0; fi }