Apparently `set -x' in the shell works on some Bourne shells, but not SCO.
authorMartin Pool <mbp@samba.org>
Wed, 29 Aug 2001 09:24:35 +0000 (09:24 +0000)
committerMartin Pool <mbp@samba.org>
Wed, 29 Aug 2001 09:24:35 +0000 (09:24 +0000)
runtests.sh

index 1d28437..712bde8 100755 (executable)
@@ -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 "============================================================"