aboutsummaryrefslogtreecommitdiff
path: root/dists/openpandora
diff options
context:
space:
mode:
authorJohannes Schickel2016-02-29 19:18:18 +0100
committerJohannes Schickel2016-02-29 19:19:09 +0100
commit824cb7bc8976a284b63c528c6f3938fe1d5089b9 (patch)
treee1832937576a45a115c8f439f2d1ac51c71c07b4 /dists/openpandora
parent01a76df6e3b1ffd95b6a0febfb77bd6003f9441a (diff)
downloadscummvm-rg350-824cb7bc8976a284b63c528c6f3938fe1d5089b9.tar.gz
scummvm-rg350-824cb7bc8976a284b63c528c6f3938fe1d5089b9.tar.bz2
scummvm-rg350-824cb7bc8976a284b63c528c6f3938fe1d5089b9.zip
OPENPANDORA: Handle non-exported or not-set $TERM in pnd_make.sh.
Diffstat (limited to 'dists/openpandora')
-rwxr-xr-xdists/openpandora/pnd_make.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/dists/openpandora/pnd_make.sh b/dists/openpandora/pnd_make.sh
index f077c42d0e..a24beaf5d4 100755
--- a/dists/openpandora/pnd_make.sh
+++ b/dists/openpandora/pnd_make.sh
@@ -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