Skip to content
Snippets Groups Projects
Commit 2d5316b4 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

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

parent eb351d9e
No related branches found
No related tags found
No related merge requests found
......@@ -50,8 +50,11 @@ fi
SHTOOL="$ac_cv_shtool"
dnl AC_SUBST(SHTOOL)dnl
TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
TB="" TN=""
if test -t 1; then
TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
fi
OPENLDAP_CVS=""
if test -d $ac_aux_dir/CVS; then
......
......@@ -14,8 +14,13 @@
## <http://www.OpenLDAP.org/license.html>.
. $SRCDIR/scripts/defines.sh
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 ">>>>> Executing all LDAP tests for $BACKEND"
......
......@@ -14,8 +14,13 @@
## <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
SLEEPTIME=10
echo "#######################################################################"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment