From: Martin Pool Date: Wed, 29 Aug 2001 09:24:35 +0000 (+0000) Subject: Apparently `set -x' in the shell works on some Bourne shells, but not SCO. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/42e66aa24cacea99d62b203d1c1a4bad234a1f1a Apparently `set -x' in the shell works on some Bourne shells, but not SCO. --- 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 "============================================================"