From 42e66aa24cacea99d62b203d1c1a4bad234a1f1a Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Wed, 29 Aug 2001 09:24:35 +0000 Subject: [PATCH] Apparently `set -x' in the shell works on some Bourne shells, but not SCO. --- runtests.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/runtests.sh b/runtests.sh index 1d284372..712bde84 100755 --- a/runtests.sh +++ b/runtests.sh @@ -101,8 +101,11 @@ RUNSHFLAGS='-e' if [ -n "$loglevel" ] && [ "$loglevel" -gt 8 ] then - RUNSHFLAGS="$RUNSHFLAGS -x" - set -x + if set -x + then + # If it doesn't work the first time, don't keep trying. + RUNSHFLAGS="$RUNSHFLAGS -x" + fi fi echo "============================================================" -- 2.34.1