mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
OPENPANDORA: Handle non-exported or not-set $TERM in pnd_make.sh.
This commit is contained in:
parent
01a76df6e3
commit
824cb7bc89
@ -44,10 +44,10 @@ cecho () # Color-echo. Argument $1 = message, Argument $2 = color
|
||||
|
||||
# We only output colors when stdout is outputting to a terminal.
|
||||
# This avoids color codes being output in log files created on buildbot.
|
||||
if [ -t 1 ]; then
|
||||
if [ -t 1 -a -n "$TERM" ]; then
|
||||
color=${2:-$black} # Defaults to black, if not specified.
|
||||
echo -e "$color$message"
|
||||
tput sgr0 # Reset to normal.
|
||||
tput -T"$TERM" sgr0 # Reset to normal.
|
||||
else
|
||||
echo "$message"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user