From: Hallvard Furuseth Date: Sat, 19 May 2007 21:26:54 +0000 (+0000) Subject: Only use terminal escapes (in $TB/$TN) when printing to a terminal. X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~451 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9fd99cd566020ce7d796a012f9727d875f16e479;p=openldap Only use terminal escapes (in $TB/$TN) when printing to a terminal. Remove a bogus 'waiting' message; the script does not sleep there. --- diff --git a/tests/scripts/its-all b/tests/scripts/its-all index da140b3097..11620ae322 100755 --- a/tests/scripts/its-all +++ b/tests/scripts/its-all @@ -14,8 +14,12 @@ ## . 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