extract_utils: Skip colored echo when piped
Change-Id: I8a03a36f3fa022e6858cc5c1dbca8b8037efed03
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user