X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2Fscripts%2Fsql-all;h=046bb8f357b9372c7ea6ab0a5c8ae37bd21abe97;hb=1adc0b9b1c39ac588adf22acf46f30e24b802682;hp=67ff71339413a174b664af6d5494d0e6d91b70b2;hpb=da6d9eb0463255782f3fa70c61fd958d94c048cf;p=openldap diff --git a/tests/scripts/sql-all b/tests/scripts/sql-all index 67ff713394..046bb8f357 100755 --- a/tests/scripts/sql-all +++ b/tests/scripts/sql-all @@ -2,7 +2,7 @@ # $OpenLDAP$ ## This work is part of OpenLDAP Software . ## -## Copyright 1998-2007 The OpenLDAP Foundation. +## Copyright 1998-2011 The OpenLDAP Foundation. ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without @@ -14,8 +14,13 @@ ## . 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 + SLEEPTIME=10 echo "#######################################################################"