Only use terminal escapes (in $TB/$TN) when printing to a terminal.

Remove a bogus 'waiting' message; the script does not sleep there.
This commit is contained in:
Hallvard Furuseth 2007-05-19 21:26:54 +00:00
parent b0b098258f
commit 9fd99cd566

View file

@ -14,8 +14,12 @@
## <http://www.OpenLDAP.org/license.html>.
SHTOOL="$SRCDIR/../build/shtool"
TB=`$SHTOOL echo -e "%B"`
TN=`$SHTOOL echo -e "%b"`
TB="" TN=""
if test -t 1 ; then
TB=`$SHTOOL echo -e "%B" 2>/dev/null`
TN=`$SHTOOL echo -e "%b" 2>/dev/null`
fi
echo "#######################################################################"
echo "### ###"
@ -44,6 +48,5 @@ for CMD in $SRCDIR/data/regressions/its*/its*; do
exit $RC
fi
echo ">>>>> waiting for things to exit"
echo ""
done