]> git.sur5r.net Git - openldap/commitdiff
Only use terminal escapes (in $TB/$TN) when printing to a terminal.
authorHallvard Furuseth <hallvard@openldap.org>
Sat, 19 May 2007 21:26:54 +0000 (21:26 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sat, 19 May 2007 21:26:54 +0000 (21:26 +0000)
Remove a bogus 'waiting' message; the script does not sleep there.

tests/scripts/its-all

index da140b309717f7d7dae604d468c5b149e9226cde..11620ae322d2ad674e71ed0edf585ddf4eb4e62b 100755 (executable)
 ## <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